home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / BUSINESS / INSTA301.ARJ / FILES.LZH / INSTA.DOC < prev    next >
Text File  |  1991-05-31  |  380KB  |  9,241 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                                     InstaCalc (tm)
  16.                                 Shareware User Manual
  17.                                       Version 3
  18.  
  19.  
  20.  
  21.                            (C) Copyright FormalSoft 1986-91
  22.                                  All Rights Reserved
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.         No part of  this documentation may be  reproduced in whole or  in part
  34.         without the prior written permission of FormalSoft.
  35.  
  36.  
  37.         Trademarks:    FormalSoft and InstaCalc are trademarks of FormalSoft.
  38.  
  39.                        All other  brand and  product names  are trademarks  or
  40.                        registered trademarks of their respective companies.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.            FormalSoft  *  PO Box 1913  *  Sandy, UT 84091  *  801-565-0971
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.         WELCOME TO INSTACALC
  71.  
  72.         Thank you  for evaluating InstaCalc,  our PC Magazine  Editor's Choice
  73.         award  winning spreadsheet.  Although InstaCalc is extremely powerful,
  74.         we are certain you will find it to be the easiest spreadsheet you have
  75.         ever used.
  76.  
  77.         We encourage you to pass copies of this program on to your friends and
  78.         associates, so they too can see the power and ease of InstaCalc.
  79.  
  80.  
  81.  
  82.         LICENSE AGREEMENT
  83.  
  84.         InstaCalc is distributed as Shareware.   It is not free  software, nor
  85.         is it in the  public domain.  You are granted a limited license to use
  86.         InstaCalc on a trial basis.  If  you want to continue using InstaCalc,
  87.         you should  register with  FormalSoft using the  form provided  on the
  88.         next page. 
  89.  
  90.         A single  registered copy  of InstaCalc may  be used in  any situation
  91.         where only one copy of InstaCalc is running at a time, such as:
  92.  
  93.              - by  a  single user  on all  his/her machines,  such  as a  work
  94.              machine  and a  home machine  (where  the user  won't be  running
  95.              multiple copies at the same time).
  96.  
  97.              - or  on a single machine used by  multiple users (where only one
  98.              user can use InstaCalc at a time).
  99.  
  100.         If InstaCalc will be used by more than one user at a time, then a copy
  101.         must  be purchased  for each  machine.   We  offer  site licenses  and
  102.         quantity discounts.  Call us for details.
  103.  
  104.         You  are  also  granted  a  limited license  to  copy  and  distribute
  105.         InstaCalc for evaluation by others on the following conditions:
  106.  
  107.         - You may NOT charge  anything for InstaCalc itself.  You may charge a
  108.         copying fee (not to exceed $8) to cover disks and handling.  
  109.  
  110.         - You may NOT copy the printed documentation in any manner or form.  
  111.  
  112.         - You may  NOT bundle InstaCalc with  any other product  without prior
  113.         written permission from FormalSoft.
  114.  
  115.         -  You  may NOT  distribute  versions  of  InstaCalc which  have  been
  116.         modified in any way.
  117.  
  118.         -  You  must  include ALL  of  the  files which  are  distributed with
  119.         InstaCalc. These files must be ARCHIVED  together if you place them on
  120.         an electronic bulletin board.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                           1
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                   Registration Form
  137.                                   -----------------
  138.         TO ORDER:
  139.  
  140.         1. Send this form & payment to:    FormalSoft
  141.                                            InstaCalc Registration
  142.                                            P.O. Box 1913
  143.                                            Sandy, UT. 84091-1913
  144.  
  145.         2. Or give us a call at:           801-565-0971 (VISA/MC/AMEX)
  146.  
  147.  
  148.  
  149.         I want to receive  the most recent  version of InstaCalc, the  printed
  150.         manual, and to be eligible for technical support.  Please send me ____
  151.         copies of InstaCalc.  I have enclosed $49 for each copy  ordered, plus
  152.         $5 shipping and handling.
  153.  
  154.         * Utah residents please add 6.25% sales tax.
  155.         * Foreign orders add $10 for air mail.
  156.  
  157.         Amount enclosed:_____________
  158.  
  159.         * We  also offer quantity  discounts and site  licenses.  Call  us for
  160.         details.
  161.  
  162.         Disk size:    [ ] 5.25"       [ ] 3.5"
  163.  
  164.         Name:________________________________________________________________ 
  165.  
  166.         Company:_____________________________________________________________
  167.                     
  168.         Address:_____________________________________________________________
  169.                     
  170.         City, State, Zip:____________________________________________________
  171.  
  172.         Country:_____________________________________________________________
  173.                     
  174.         [ ] CHECK (US $ drawn on US bank only)   [ ] VISA/MC   [ ] AMEX
  175.  
  176.         Credit card #_______________________________   Exp date_______________
  177.  
  178.         Signature_____________________________________________________________
  179.  
  180.         Where did you get your copy from?____________________________________
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                           2
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.         INSTACALC FEATURES
  203.  
  204.         InstaCalc is  a state of  the art spreadsheet, extremely  powerful yet
  205.         easy to learn and use.
  206.  
  207.         ****************************************************************
  208.         * And InstaCalc is a PC Magazine Editor's Choice award winner! *
  209.         ****************************************************************
  210.  
  211.         InstaCalc can  be run either as a standalone  spreadsheet, or as a pop
  212.         up  spreadsheet which  can cut  and paste  your spreadsheet  data with
  213.         other programs.  Below are just a few of InstaCalc's capabilities.
  214.  
  215.         Pop up option uses less than 15K RAM
  216.         Cut and paste with other programs
  217.         Direct import and export of:
  218.              1-2-3 files
  219.              dBase files
  220.              DIF files
  221.              ASCII files
  222.         Powerful macro environment
  223.              Full application language
  224.                   for/next, repeat/until
  225.                   if/else/endif
  226.                   windowing commands
  227.                   moving bar menu systems
  228.                   access to DOS/printer
  229.              Macro editor
  230.              Debugging
  231.                   single stepping
  232.                   conditional breakpoints
  233.              Macro recorder
  234.         Business graphics
  235.         Expanded memory support
  236.         File encryption
  237.         File linking
  238.         100 built-in @functions
  239.         Goal seeking
  240.         Auditing
  241.         EGA 43 line support
  242.         Search and replace
  243.         Database entry forms
  244.         Sort on up to 9 keys
  245.         Query worksheet databases
  246.         Query dBase files
  247.         Mouse support
  248.         Visual point & shoot file manager
  249.         Context sensitive help
  250.         Menu system shows all levels of the menu on screen
  251.         Set and view options from full page menus
  252.         Index to function keys across bottom of screen
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                           3
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.         CONTENTS
  269.  
  270.         GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . .    2
  271.              INSTALLING INSTACALC . . . . . . . . . . . . . . . . . . . .    2
  272.              HOW TO RUN INSTACALC . . . . . . . . . . . . . . . . . . . .    2
  273.              STARTUP OPTIONS  . . . . . . . . . . . . . . . . . . . . . .    3
  274.              CUSTOMIZING INSTACALC  . . . . . . . . . . . . . . . . . . .    3
  275.              USING DATA FROM EARLIER VERSIONS OF INSTACALC  . . . . . . .    4
  276.  
  277.         INSTACALC BASICS  . . . . . . . . . . . . . . . . . . . . . . . .    5
  278.              THE WORKSHEET  . . . . . . . . . . . . . . . . . . . . . . .    5
  279.              HOW TO GET HELP  . . . . . . . . . . . . . . . . . . . . . .    6
  280.              MOVING AROUND THE WORKSHEET  . . . . . . . . . . . . . . . .    6
  281.              ENTERING AND EDITING DATA  . . . . . . . . . . . . . . . . .    8
  282.              HOW TO ENTER AND USE FORMULAS  . . . . . . . . . . . . . . .   10
  283.              RELATIVE AND ABSOLUTE CELL REFERENCES  . . . . . . . . . . .   12
  284.              DEFINING A RANGE OF CELLS  . . . . . . . . . . . . . . . . .   12
  285.              BUILT-IN @FUNCTIONS  . . . . . . . . . . . . . . . . . . . .   14
  286.              USING THE COMMAND MENUS  . . . . . . . . . . . . . . . . . .   14
  287.              USING THE FUNCTION KEYS  . . . . . . . . . . . . . . . . . .   15
  288.              SAVING AND RETRIEVING DATA . . . . . . . . . . . . . . . . .   15
  289.              USING THE FILE MANAGER . . . . . . . . . . . . . . . . . . .   15
  290.              CHANGING YOUR SPREADSHEET'S APPEARANCE . . . . . . . . . . .   16
  291.              PRINTING YOUR DATA . . . . . . . . . . . . . . . . . . . . .   17
  292.              GRAPHING YOUR DATA . . . . . . . . . . . . . . . . . . . . .   18
  293.              RECORDING A MACRO  . . . . . . . . . . . . . . . . . . . . .   18
  294.              THE INSTACALC TEXT EDITOR  . . . . . . . . . . . . . . . . .   19
  295.              THE INSTACALC MACRO LANGUAGE . . . . . . . . . . . . . . . .   19
  296.              CUTTING DATA FROM OTHER PROGRAMS . . . . . . . . . . . . . .   19
  297.              PASTING DATA TO OTHER PROGRAMS . . . . . . . . . . . . . . .   20
  298.  
  299.         REFERENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . .   21
  300.              THE FUNCTION KEYS  . . . . . . . . . . . . . . . . . . . . .   21
  301.              INSTACALC COMMAND MENUS  . . . . . . . . . . . . . . . . . .   24
  302.              BUILT-IN FUNCTIONS . . . . . . . . . . . . . . . . . . . . .   63
  303.  
  304.         INSTACALC APPLICATIONS  . . . . . . . . . . . . . . . . . . . . .  112
  305.              CREATING AN APPLICATION  . . . . . . . . . . . . . . . . . .  112
  306.              RUNNING AN APPLICATION . . . . . . . . . . . . . . . . . . .  113
  307.              LANGUAGE DESCRIPTION . . . . . . . . . . . . . . . . . . . .  114
  308.              SPECIAL KEY NAMES  . . . . . . . . . . . . . . . . . . . . .  116
  309.              THE INSTACALC COMMAND ENVIRONMENT  . . . . . . . . . . . . .  117
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                           1
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.         GETTING STARTED
  335.  
  336.  
  337.         INSTALLING INSTACALC
  338.         The InstaCalc disk is in  a compressed form to  fit on a single  disk.
  339.         An installation program  is included which will  automatically install
  340.         InstaCalc on your hard disk or another floppy.  To run this program:
  341.  
  342.         1. Turn on your computer.
  343.         2. Insert the InstaCalc disk into drive A.
  344.         3. Type A: at the DOS prompt and press <Enter>.
  345.         4. Type INSTALL and press <Enter>.
  346.         5. Respond to the prompts as directed.
  347.  
  348.  
  349.         HOW TO RUN INSTACALC
  350.         InstaCalc  may  be  run  in  two  different  modes;  as  a  standalone
  351.         spreadsheet, or as a pop up spreadsheet.
  352.  
  353.         Standalone     To run InstaCalc as a standalone spreadsheet:
  354.  
  355.                        - Turn on your computer
  356.                        - Change to the directory where the InstaCalc files are
  357.                        - Type INSTA
  358.  
  359.         Pop up         To run InstaCalc as a pop up spreadsheet:
  360.  
  361.                        - Turn on your computer
  362.                        - Change to the directory where the InstaCalc files are
  363.                        - Type INSTA /p
  364.  
  365.                        This  will install InstaCalc into memory and return you
  366.                        to the DOS  prompt.  InstaCalc will then  look at every
  367.                        keystroke  you  type  (don't   worry,  it  isn't  doing
  368.                        anything  to hurt them).   InstaCalc is  simply looking
  369.                        for a  particular key  sequence known  as the  Hot Key.
  370.                        The Hot Key is initially  defined to be <Alt>I, but you
  371.                        can change this with the setup program described later.
  372.  
  373.                        Once you have loaded InstaCalc  into memory, you may go
  374.                        about  doing  whatever you  need to  do, whether  it is
  375.                        running DOS commands or other programs.  Then, whenever
  376.                        you need the power of InstaCalc, simply type <Alt>I (or
  377.                        whatever you  have  defined  the Hot  Key  to  be)  and
  378.                        InstaCalc will pop into action.
  379.  
  380.                        InstaCalc  should  be  loaded   after  memory  resident
  381.                        programs which  are not called up by a hot key (such as
  382.                        RAM disks, print spoolers, etc).
  383.  
  384.                        When InstaCalc is run in pop up mode,  it will only use
  385.                        15K of memory, swapping the  rest of the program in and
  386.                        out  from your hard disk, extended, or expanded memory.
  387.                        When swapping from disk, there will be a delay from the
  388.                        time you press the Hot Key and when the program pops up
  389.                        (and  pops  down  when  you  are  done).    The message
  390.                        Swapping in and Swapping out will be displayed at these
  391.  
  392.  
  393.                                           2
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                        times.
  401.  
  402.                        If you  want to  unload InstaCalc  from memory,  simply
  403.                        type
  404.  
  405.                        INSTA /u
  406.  
  407.  
  408.                        NOTE FOR  WORDPERFECT  USERS:  Sometimes  when  popping
  409.                        InstaCalc  up  through  WordPerfect on  an  EGA  or VGA
  410.                        system,  the  InstaCalc  screen  will  have  a  strange
  411.                        appearance  (such as text in italics, odd colors, etc).
  412.                        This  is  because  WordPerfect sometimes  uses  special
  413.                        "fonts" on screen,  and InstaCalc must use  the current
  414.                        "font" when it pops up through WordPerfect.   There are
  415.                        two ways around this:
  416.  
  417.                        (1) In WordPerfect,  go into the setup  screen, and set
  418.                        the Colors/Fonts/Attributes to "Normal Font Only".
  419.  
  420.                        or
  421.  
  422.                        (2)  Run the InstaCalc SETUP.EXE program, and make sure
  423.                        the  colors you  select  for the  various parts  of the
  424.                        screen  come  from the  left  8  columns  of the  color
  425.                        selection box (the  right 8 columns  of colors are  the
  426.                        ones that cause the problems).
  427.  
  428.  
  429.  
  430.         STARTUP OPTIONS
  431.         InstaCalc provides  a variety  of options you  can use when  you first
  432.         start up the program.
  433.  
  434.         Switches  InstaCalc provides the following command line switches:
  435.  
  436.                   /Pmemory  Install  InstaCalc as a popup spreadsheet.  If you
  437.                             use the /P  alone, InstaCalc will allocate  40K of
  438.                             memory for your data.   If you want more (or less)
  439.                             memory to store your data  in, then add the number
  440.                             of bytes desired immediately after the /P.
  441.  
  442.                   /U        Unload InstaCalc from memory.
  443.  
  444.  
  445.  
  446.  
  447.         CUSTOMIZING INSTACALC
  448.         InstaCalc includes a  setup program which allows you  to customize the
  449.         functionality and appearance of InstaCalc on  your system.  To run the
  450.         setup program, simply type:
  451.  
  452.         SETUP  at the DOS prompt.
  453.  
  454.         The setup program allows you to change the following settings:
  455.  
  456.         Display in B&W      Setting this option to YES causes InstaCalc to use
  457.  
  458.  
  459.                                           3
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.                             black and white  whether a color card  is detected
  467.                             or not.   This  is useful when  your system  has a
  468.                             color card but a monochrome monitor.
  469.  
  470.         Currency format     This option allows you to select the format to use
  471.                             for numbers and currency.  Normally InstaCalc uses
  472.                             a period for the decimal point, and a comma as the
  473.                             separator between thousands, millions,  etc.  Many
  474.                             countries  use these  characters  in the  opposite
  475.                             manner.   If you choose  to use the comma  for the
  476.                             decimal  point, then  you must  use  the colon  to
  477.                             separate  arguments in @functions.   You  may also
  478.                             select which character (or  characters) to use for
  479.                             your  currency  symbol.   You  may  replace  the $
  480.                             symbol with any  other available symbol.   You may
  481.                             also set the currency symbol to be after the value
  482.                             rather than before the value.
  483.  
  484.         Hot Key             This option allows you to select the  Hot Key that
  485.                             will be used to pop up InstaCalc in TSR mode.  The
  486.                             Hot   key  may  be   any  of  the   following  key
  487.                             combinations: <Ctrl>  with any letter,  <Alt> with
  488.                             any letter,  <Alt> with  a function  key (<F1>  to
  489.                             <F10>),  <Alt> with one  of the number  keys along
  490.                             the top row, <Alt> with the - or = key.
  491.  
  492.         Colors              This  option allows  you  to  select which  colors
  493.                             InstaCalc should  use for the  different parts  of
  494.                             the display.   Select the part  of the screen  you
  495.                             want to change the color of (for example, the axes
  496.                             and cell  pointer).   A window  will pop  up which
  497.                             displays  all of the colors available.  You select
  498.                             the color  you want by  moving the cursor  to that
  499.                             color with  the arrow  keys and  pressing <Enter>.
  500.                             The sample display will be updated to show the new
  501.                             color you just selected.
  502.  
  503.         Exit                Pressing X  will exit  from SETUP,  and will  save
  504.                             your changes to the INSTA.CFG file.
  505.  
  506.  
  507.  
  508.         USING DATA FROM EARLIER VERSIONS OF INSTACALC
  509.         If you have data from earlier versions  of InstaCalc, you will need to
  510.         convert them before  using them with InstaCalc  3.0.  To perform  this
  511.         conversion,  use the EXPORT.COM  program which comes  with the earlier
  512.         versions to  convert your data to a  1-2-3 WK1 file.   For example, if
  513.         you have an InstaCalc file named MYFILE.INS, you would type:
  514.  
  515.         EXPORT WK1 MYFILE
  516.  
  517.         at the  DOS prompt.   This will read  the InstaCalc file and  create a
  518.         file named MYFILE.WK1.
  519.  
  520.         You can then read the newly created MYFILE.WK1 file into InstaCalc 3.0
  521.         using the /File Import 1-2-3 command.
  522.  
  523.  
  524.  
  525.                                           4
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.         INSTACALC BASICS
  533.  
  534.         THE WORKSHEET
  535.         A spreadsheet  may be thought of as a large electronic worksheet, much
  536.         like a piece of paper divided into rows and columns, like this:
  537.  
  538.                      A   B   C   D   E   F   G   H
  539.                    ---------------------------------
  540.                   1|   |   |   |   |   |   |   |   |
  541.                    |---|---|---|---|---|---|---|---|
  542.                   2|   |   |   |   |   |   |   |   |
  543.                    |---|---|---|---|---|---|---|---|
  544.                   3|   |   |   |   |   |   |   |   |
  545.                    |---|---|---|---|---|---|---|---|
  546.                   4|   |   |   |   |   |   |   |   |
  547.                    |---|---|---|---|---|---|---|---|
  548.                   5|   |   |   |   |   |   |   |   |
  549.                    |---|---|---|---|---|---|---|---|
  550.                   6|   |   |   |   |   |   |   |   |
  551.                    |---|---|---|---|---|---|---|---|
  552.                   7|   |   |   |   |   |   |   |   |
  553.                    ---------------------------------
  554.  
  555.         An InstaCalc  worksheet has 256  columns and 4096  rows.  In  order to
  556.         distinguish columns from each other, InstaCalc assigns a letter of the
  557.         alphabet to each  column.  The first  26 columns are labeled  with the
  558.         letters A through Z.  Since there are 256 columns but only 26 letters,
  559.         the remaining columns must use 2  letters to identify them.  InstaCalc
  560.         assigns each of the rows in a worksheet a number from 1  to 4096.  The
  561.         top row in a worksheet is row 1 and the bottom row is row 4096.
  562.  
  563.         The area where a row and a column cross is known as  a cell. Each cell
  564.         in  the Worksheet  is identified  by the  letter (or  letters) of  the
  565.         column it is in, and the number of  the row it is in. For example, the
  566.         cell that is in column R and  row 29 is named R29 (the column  letters
  567.         always come before  the row number). Each one of the cells may contain
  568.         some text, a number, or a formula.
  569.  
  570.         Since it is impossible to view all 4096 rows and  256 columns at once,
  571.         the screen display provides a window looking into  the Worksheet.  The
  572.         letters of the  columns which  are on  the screen are  displayed in  a
  573.         horizontal  bar above the columns, while the numbers of the rows which
  574.         are on the screen  are displayed in a vertical bar to  the left of the
  575.         rows.
  576.  
  577.         A status line  is located in the  upper left corner of  the screen and
  578.         looks something like this:
  579.  
  580.         A1: (W9) BLANK <Default>
  581.  
  582.         Each component of the status  line tells you certain information about
  583.         the current cell.  A1 tells you that  the cell you are currently at is
  584.         in column A and row 1.  (W9) tells you that the column you are in is 9
  585.         characters wide.
  586.  
  587.  
  588.  
  589.  
  590.  
  591.                                           5
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.         BLANK tells you that  the cell you  are at is  currently blank.   This
  599.         item tells you what is currently in the cell:
  600.  
  601.              BLANK     - a blank cell
  602.              TEXT      - a line of text
  603.              NUMBER    - a number
  604.              FORMULA   - a formula with a numeric result
  605.              TXTFORM   - a formula with a text result
  606.              FORMAT    - a blank cell which contains formatting information
  607.              ERROR     - a formula which has an error value
  608.  
  609.         The bottom  line of the display is an  index to the function keys <F1>
  610.         through <F10> so you don't have to memorize or look them up.  Pressing
  611.         <Ctrl> changes  this index  to reflect the  operation of  the function
  612.         keys when used in combination with the <Ctrl> key.
  613.  
  614.  
  615.  
  616.         HOW TO GET HELP
  617.         InstaCalc provides extensive online help for its features.  To call up
  618.         this help, simply press the <F1> Help key at any point in the program.
  619.         A  help  screen will  pop  up  which  provides information  about  the
  620.         operation you are attempting.
  621.  
  622.         InstaCalc's help is  context-sensitive.  This means that  InstaCalc is
  623.         always keeping track of what you are doing so that  it can provide the
  624.         proper help screen when  you ask for  it.  For  example, if you  press
  625.         <F1> when  you are  trying to copy  a cell, then  a help  screen which
  626.         explains that feature will pop up.
  627.  
  628.         InstaCalc's help is also interactive.  This means that the help screen
  629.         which  pops up  will also  list several  other help screens  which are
  630.         related to what you are doing.  You may view one of these related help
  631.         screens by simply  using the <Left>  and <Right>  keys (or moving  the
  632.         mouse)  to  move the  highlight bar  to  the name  of the  help screen
  633.         desired, and then pressing the <Enter> key or left mouse button, or by
  634.         simply pressing the first letter of the desired help screen's name.
  635.  
  636.         You may also call up a list of help screens called the <HELP INDEX> by
  637.         pressing the  <F1> key a second time, or  by pressing the right button
  638.         on your mouse.
  639.  
  640.         After you have read the help  screens that interest you, simply  press
  641.         the <Esc>  key (or both mouse  keys simultaneously) to return  to what
  642.         you were doing.
  643.  
  644.  
  645.  
  646.         MOVING AROUND THE WORKSHEET
  647.         You move  from cell to  cell by moving  the "cell pointer".   The cell
  648.         pointer is a  highlighted bar on the screen which "points to" the cell
  649.         in  the Worksheet  which is  the  current cell.   The  address  of the
  650.         current cell is displayed on the top line of the InstaCalc screen.
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.                                           6
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.         InstaCalc provides many ways to move the cell pointer.
  665.  
  666.         <Up> <Down>
  667.         <Left> <Right>
  668.                        These keys move  the cell  pointer up,  down, left,  or
  669.                        right one cell position.
  670.  
  671.         <Home>         This key moves the cell pointer to cell A1.
  672.  
  673.         <End>          This key operates in a different manner  than the other
  674.                        movement keys.   Pressing <End> does not  move the cell
  675.                        pointer  itself,  but  changes  the  way   the  <Left>,
  676.                        <Right>, <Up>,  <Down>, <PgUp>, <PgDn> and  <Home> keys
  677.                        work.  If you  press the <End> key and then  one of the
  678.                        arrow  keys or <PgUp> or <PgDn>,  then the cell pointer
  679.                        will move in one of the following ways:
  680.  
  681.                        - If the  cell pointer is in a blank cell, it will move
  682.                        in the direction selected to the first non blank cell.
  683.  
  684.                        - If the cell pointer is  in a non blank cell, it  will
  685.                        move in  the direction selected  to the last  non blank
  686.                        cell before a blank cell.
  687.  
  688.                        If  you press the <End> key followed immediately by the
  689.                        <Home> key, the  cell pointer will move to  the cell in
  690.                        the lower right corner of the sheet.
  691.  
  692.                        If you want to cancel  out the effect of the <End>  key
  693.                        after you  have pressed it, simply press <End> a second
  694.                        time.
  695.  
  696.         <Ctrl><Right>  This key sequence  moves the cell pointer  one screen's
  697.                        worth of  columns to the  right.  This key  sequence is
  698.                        generated by holding  down the <Ctrl> key  and pressing
  699.                        <Right>.
  700.  
  701.         <Ctrl><Left>   This key sequence  moves the cell pointer  one screen's
  702.                        worth of  columns to  the left.   This key  sequence is
  703.                        generated by holding  down the <Ctrl> key  and pressing
  704.                        <Left>.
  705.  
  706.         <PgUp>         This  key  sequence  moves  the  cell  pointer  up  one
  707.                        screen's worth of rows.  This key sequence is generated
  708.                        by holding down <Ctrl> and pressing <PgUp>.
  709.  
  710.         <PgDn>         This  key  sequence  moves the  cell  pointer  down one
  711.                        screen's worth of rows.  This key sequence is generated
  712.                        by holding down <Ctrl> and pressing <PgDn>.
  713.  
  714.         <F5>           This key  moves the cell  pointer anywhere you  tell it
  715.                        to.   InstaCalc will ask you which  cell you want to go
  716.                        to, and you just type in the cell name and hit <Enter>.
  717.  
  718.         In addition to the various movement keys,  InstaCalc provides built-in
  719.         mouse support.   If you  have a  mouse and have  installed your  mouse
  720.         driver before running InstaCalc, then you can move the cell pointer by
  721.  
  722.  
  723.                                           7
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.         simply moving the mouse in the direction you want to go.
  731.  
  732.  
  733.  
  734.         ENTERING AND EDITING DATA
  735.         You  can enter numbers or text into any of the cells in the Worksheet.
  736.         Just move the cell pointer to the  cell you want to enter a number  or
  737.         text  in, and  type the  number or  text.   You  may enter  up to  240
  738.         characters into each  cell.  The number  or text will be  entered into
  739.         the cell as  soon as  you press <Enter>  or one of  the movement  keys
  740.         (<Up>, <Down>,  <Left>, <Right>,  <PgUp>, or <PgDn>).   If  you finish
  741.         entering the data using the <Enter> key,  the cell pointer will remain
  742.         positioned at the  same cell.  If  you finish entering the  data using
  743.         one of the  movement keys, the data  will be entered into  the current
  744.         cell, and  then the  cell pointer  will move  to another  cell in  the
  745.         direction you specified.
  746.  
  747.         Numbers   A  number can range  in value from -10^37  to 10^37, and can
  748.                   have up to  11 significant places.   You can enter  a number
  749.                   into a cell using either standard notation (like 12.345)  or
  750.                   scientific notation (like 1234.5e-2).
  751.  
  752.         Text      If you enter  a line of text which  contains more characters
  753.                   than the  column is wide,  it will spill over  into adjacent
  754.                   cells (if  the adjacent cells  are blank).  If  the adjacent
  755.                   cells contain data,  then the extra  characters in the  text
  756.                   string  will be hidden from view (but  they will still be in
  757.                   the cell).   If you want to see  the entire string, you must
  758.                   widen the column containing the text.
  759.  
  760.                   The  way your  text is  displayed in a  cell depends  on the
  761.                   first character  of the text.   There are four  (4) possible
  762.                   characters which can precede your text and which  affect the
  763.                   way the text is displayed.  These characters are:
  764.  
  765.                   ' causes the text to be left justified in the cell
  766.                   " causes the text to be right justified in the cell
  767.                   ^ causes the text to be centered in the cell
  768.                   \ causes the next character to be repeated
  769.  
  770.                   If  you enter  some text  without one  of the  above special
  771.                   characters  as   the   first   character,   InstaCalc   will
  772.                   automatically place the global justify character on the text
  773.                   for  you.   You can  select  or change  this global  justify
  774.                   character  with the /Worksheet  Justify command on  the main
  775.                   menu.   Once the text has been entered  into a cell, you may
  776.                   change the justification  using either the /Cell  Justify or
  777.                   the  /Range Justify commands  (or use the  <F2>Edit function
  778.                   key to  enter edit  mode and  just change  the justification
  779.                   character to the one you want).
  780.  
  781.         Editing   If you need to change an entry in a cell,  but don't want to
  782.                   retype the entire  thing, InstaCalc provides the  ability to
  783.                   edit your  entry. Simply move  the cell pointer to  the cell
  784.                   you want to edit, and press the <F2> Edit key.  If  there is
  785.                   anything  in  the cell  to  edit, InstaCalc  will  enter its
  786.                   editing mode.   Also, if  you make an error  when entering a
  787.  
  788.  
  789.                                           8
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.                   formula   this    editing   capability   will    be   called
  797.                   automatically.
  798.  
  799.                   When you  are in edit  mode, the following editing  keys are
  800.                   available:
  801.  
  802.                   <Left>         moves the cursor one character to the left.
  803.                   <Right>        moves the cursor one character to the right.
  804.                   <Home>         moves the cursor to the first character.
  805.                   <End>          moves the cursor to the last character.
  806.                   <Ctrl><Right>  moves the cursor one word to the right.
  807.                   <Ctrl><Left>   moves the cursor one word to the left.
  808.  
  809.                   <BkSp>         deletes  the character  to  the left  of  the
  810.                                  cursor and shifts the following characters in
  811.                                  the line  to the  left to fill  in the  empty
  812.                                  space.
  813.  
  814.                   <Ctrl><BkSp>   deletes the  entire line.   This  is not  the
  815.                                  same  as erasing  the cell.    The cell  will
  816.                                  still take up  memory, but it will  contain a
  817.                                  blank string.  To  erase the cell completely,
  818.                                  use the /Cell Erase command.
  819.  
  820.                   <Del>          deletes the  character underneath  the cursor
  821.                                  and shifts  the following  characters in  the
  822.                                  line to the left to fill in the empty space.
  823.  
  824.                   <Ins>          toggles between  insert and  overwrite modes.
  825.                                  When   you  are  in  insert  mode,  typing  a
  826.                                  character will insert  the new character into
  827.                                  the  line at the  point where the  cursor is.
  828.                                  The  character under the  cursor and those to
  829.                                  the  right of the  cursor are shifted  to the
  830.                                  right  to make  room  for the  new character.
  831.                                  When  you are  in  overwrite  mode, typing  a
  832.                                  character  will replace  the character  under
  833.                                  the cursor with the new character.
  834.  
  835.                                  When  you are in insert mode, the cursor will
  836.                                  be  an  underline.   In  overwrite  mode  the
  837.                                  cursor will be a solid block.
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.                                           9
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.         HOW TO ENTER AND USE FORMULAS
  863.         One of the most  useful features of any spreadsheet is  the ability to
  864.         perform  calculations using  the  numbers and  text  entered in  other
  865.         cells.  This  is done by entering a  formula into a cell.   To enter a
  866.         formula, you simply  move the cell  pointer to the  cell you want  the
  867.         formula to be in,  type the formula, then press <Enter>.   When a cell
  868.         contains  a  formula, it  will  display  the  value that  the  formula
  869.         evaluates to, rather than the formula itself.
  870.  
  871.         An InstaCalc formula must begin with an equal sign '=' and may be made
  872.         up of numbers (or  text in some cases), references to  values in other
  873.         cells,  built-in functions, and  mathematical, logical, and comparison
  874.         operators.
  875.  
  876.         Example   Let's say you have a number  in cell B5 and another in  cell
  877.                   C6, and you would  like to add these  two numbers and  place
  878.                   the result in cell A4.  Simply  move the cell pointer to A4,
  879.                   and  type  in  the following  formula:  =B5+C6  (followed by
  880.                   <Enter>).  Cell A4 now contains the formula you entered, but
  881.                   it will  display the result  of the formula.   If you  later
  882.                   change the number in either B5 or C6, the formula in A4 will
  883.                   be recalculated and the new value will be displayed.
  884.  
  885.         You can use the following  operators in a formula (a and b  can be any
  886.         number, cell reference, function, or formula):
  887.  
  888.         Mathematical   a+b  Addition
  889.                        a-b  Subtraction
  890.                        a*b  Multiplication
  891.                        a/b  Division
  892.                        a^b  Exponentiation
  893.  
  894.         Logical        a&b  And (is true only if a is true AND b is true)
  895.                        a|b  Or (is true is a is true OR b is true)
  896.                        ~b   Not (false if b is true, and true if b is false)
  897.  
  898.         Comparison     a=b  is true if a is equal to b
  899.                        a<>b is true if a is NOT equal to b
  900.                        a<b  is true if a is less than b
  901.                        a>b  is true if a is greater than b
  902.                        a<=b is true if a is less than or equal to b
  903.                        a>=b is true is a is greater than or equal to b
  904.  
  905.         You can also use the comparison operators to compare text strings with
  906.         each other.   Two strings  are considered equal  if they are  the same
  907.         length, and  contain the same  characters in the  same order.   String
  908.         comparisons  are case  insensitive, which means  that two  letters are
  909.         considered the  same regardless of whether one is uppercase and one is
  910.         lowercase.  For example,  the string Test is  considered equal to  the
  911.         string test.
  912.  
  913.         In addition, the + operator can also be used to concatenate 2 strings.
  914.         For example, the formula:
  915.  
  916.         ="This is"+" a test"
  917.  
  918.         returns the string This is a test.
  919.  
  920.  
  921.                                           10
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.         If  you  enter  a formula  which  uses  more  than  one operator,  the
  929.         operations   are  always  performed   in  a  specific   order  (called
  930.         precedence).  The order of precedence is:
  931.  
  932.         1. Exponentiation             ^ 
  933.         2. Negation                   -
  934.         3. Multiplication and Division          *   /
  935.         4. Addition and Subtraction        +   -
  936.         5. Comparison                 =   <   >   <=   >=   <>
  937.         6. Not                        ~
  938.         7. And/Or                &   |
  939.  
  940.         where exponentiation is performed before negation and so on.
  941.  
  942.         If  you want  to change the  order in which  operations are performed,
  943.         then you must use  parentheses in your formulas.  Operations which you
  944.         place in  parentheses  will  be performed  before  those  outside  the
  945.         parentheses.  For example, the formula
  946.  
  947.         =2+3*4
  948.  
  949.         evaluates as 14 (not 20) because  the multiply has a higher precedence
  950.         than the addition.   If you want  the addition to be  performed first,
  951.         then use parentheses to make the equation look like
  952.  
  953.         =(2+3)*4
  954.  
  955.         In addition to typing cell references  in formulas, you can also enter
  956.         cell references by  pointing to them  with the cell  pointer.  At  any
  957.         point in entering a formula where a cell reference is allowed, you can
  958.         simply press any of  the cell pointer movement keys  to begin pointing
  959.         to  a cell or range of cells.   The address of the cell which the cell
  960.         pointer  is on  will appear  in the  formula.   As you  move the  cell
  961.         pointer  around, the  reference in  the  formula will  be adjusted  to
  962.         reflect the new position of the cell pointer.
  963.  
  964.         When the  cell pointer  is highlighting the  cell reference  you want,
  965.         either press the <Enter>  key or the character you want to immediately
  966.         follow  the  cell reference.    If  you  press  the <Enter>  key,  the
  967.         reference will be entered and  you may continue to enter the  formula.
  968.         If you press another  key, the reference and the key  you pressed will
  969.         be  entered on  the formula  line, and you  may continue  entering the
  970.         formula. 
  971.  
  972.         If you change  your mind about  pointing to  a cell reference,  simply
  973.         press the <Esc> key and you will be returned to formula  entry without
  974.         any cell reference being entered.
  975.  
  976.         If you have named any cells with the /Range Name command, you may also
  977.         select a  cell or  range reference  from a  list of  these references.
  978.         Simply press the <F3> key when you want to select a named range, and a
  979.         menu will pop  up which lists  all the currently defined  range names.
  980.         You can then select  the range name  you want, and  it will be  placed
  981.         into your  formula for you.  The  <F3> key will only pop  up the range
  982.         name list when it is legal to enter a cell or range reference.
  983.  
  984.         If you enter a formula which InstaCalc can't evaluate, the formula you
  985.  
  986.  
  987.                                           11
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.         entered will be displayed on the command line and the editing facility
  995.         will be  invoked.   The cursor  will be  placed near  the part  of the
  996.         formula which InstaCalc didn't like, and you may fix the formula using
  997.         the editing commands.
  998.  
  999.         If  you enter (or  edit) a  formula and the  word CIRC  appears in the
  1000.         upper  right corner  of the  screen, this  means a  circular reference
  1001.         exists in  your worksheet.  A circular  reference means that a formula
  1002.         in your  worksheet depends  on the value  of the cell  it is in.   For
  1003.         example, if cell  A1 contains the formula =2*A1, then the formula must
  1004.         use the current  value of cell A1 to calculate the  next value of cell
  1005.         A1.  If you have a circular  reference, the status window (<Ctrl><F8>)
  1006.         will tell you which cell it is.
  1007.  
  1008.  
  1009.  
  1010.         RELATIVE AND ABSOLUTE CELL REFERENCES
  1011.         When a formula  references another cell, there are  two different ways
  1012.         that the  cell can be referenced; absolute  and relative.  The purpose
  1013.         of relative and absolute  references is to let InstaCalc  know what to
  1014.         do when moving formulas from cell to cell.
  1015.  
  1016.         It is easy  to distinguish  between an  absolute and  a relative  cell
  1017.         reference.   An absolute cell reference  uses the $ character in front
  1018.         of each of its coordinates, like $A$1, while a relative reference uses
  1019.         no special characters, like A1.
  1020.  
  1021.         Absolute  An absolute cell reference in  a formula points to the exact
  1022.                   same  cell,  regardless of  where  the formula  is  moved or
  1023.                   copied to.
  1024.  
  1025.         Relative  A relative  cell reference in  a formula points to  the cell
  1026.                   which is a  certain number of rows and columns away.  If the
  1027.                   formula  is moved, the  new relative cell  reference will be
  1028.                   adjusted to  point to the  cell the same number  of rows and
  1029.                   columns away from the new formula location.
  1030.  
  1031.         It doesn't  matter whether  a cell reference  is absolute  or relative
  1032.         when a  formula is evaluated;  the result will  be the same  in either
  1033.         case.   For example,  the formula =2*A1  will have  the same  value as
  1034.         =2*$A$1.    You can have  both absolute and relative references in the
  1035.         same equation if you want.
  1036.  
  1037.  
  1038.  
  1039.  
  1040.         DEFINING A RANGE OF CELLS
  1041.         Many of InstaCalc's  commands can operate on  more than one cell  at a
  1042.         time.  These commands will usually ask you  to define a range of cells
  1043.         to  perform the command on.  A reference  to a range is made up of the
  1044.         cells at opposite  corners of the range separated by two periods.  For
  1045.         example, the  range reference  A1..Z20 contains all  the cells  in the
  1046.         range bordered by columns A through Z and rows 1 through 20.
  1047.  
  1048.         When  a command  asks you  to  define a  range of  cells, there  are 5
  1049.         different options.
  1050.  
  1051.  
  1052.  
  1053.                                           12
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.              - You can simply type in the range reference.
  1061.  
  1062.              -  You can  type  in the  name  of a  cell  surrounded by  square
  1063.              brackets.  InstaCalc will read the name of the range out  of that
  1064.              cell.  This option allows your application programs to indirectly
  1065.              supply a range reference to a command.
  1066.  
  1067.              Example   If  cell B5 contains  the string 'G1..J10,  then typing
  1068.                        [B5] when  you are asked  to define a range  will cause
  1069.                        InstaCalc to use the range G1..J10 for the command.
  1070.  
  1071.              - If you  have named a range  using the /Range Name  command, you
  1072.              may simply type in the name.
  1073.  
  1074.              Example   If you  assigned the name  COSTS to the  range G1..J10,
  1075.                        then typing COSTS when you  are asked to define a range
  1076.                        will  cause InstaCalc to use  the range G1..J10 for the
  1077.                        command.
  1078.  
  1079.              - Pressing  the <F3> Range  key will bring up  a menu of  all the
  1080.              currently defined range  names.  You may  pick a range  from this
  1081.              list by highlighting  the name and pressing the <Enter>  key.  If
  1082.              there are more  than 16 range  names defined,  you may press  the
  1083.              <PgUp> and <PgDn> keys to view more range names.
  1084.  
  1085.              - You  can highlight the range  on screen using  the cursor keys.
  1086.              When you are defining a range, all the visible cells in the range
  1087.              will be highlighted on the screen.  On the command line  you will
  1088.              see either  a  single cell  reference or  a range  reference.   A
  1089.              single  cell reference  means that  an anchor  cell has  not been
  1090.              selected.  In this case, pressing a movement key simply moves the
  1091.              cell pointer to  a new cell, but  does not highlight  (or define)
  1092.              any other cells.   If an anchor  cell has been selected  then all
  1093.              cells between  the anchor cell  and the current cell  are defined
  1094.              (and highlighted if visible).
  1095.  
  1096.              You  can use  any of the  movement keys (including  <F5> GoTo) to
  1097.              move the cell  pointer when  highlighting a range  of cells.   In
  1098.              addition, the following keys are active when defining a range:
  1099.  
  1100.              <Enter>   This  key causes  all the  cells  in the  range on  the
  1101.                        command  line to  be  defined. If  only  a single  cell
  1102.                        reference  is displayed  when you  press <Enter>,  then
  1103.                        only that cell will be defined.
  1104.  
  1105.              .         The period key sets the  anchor to the current cell. If
  1106.                        an  anchor was  already  set  before  you  pressed  the
  1107.                        period, then it is released before the new one is set.
  1108.  
  1109.              <Esc>     This key releases  the anchor  if it  is set.  Pressing
  1110.                        <Esc>  when the  anchor  is not  set cancels  the range
  1111.                        selection, and returns  you to whatever you  were doing
  1112.                        before you were asked to define a range.
  1113.  
  1114.              <F4>      This key  cycles the  range cell  references among  the
  1115.                        absolute and  relative types. If no anchor  is set then
  1116.                        the first  coordinate is  adjusted. If  the anchor  has
  1117.  
  1118.  
  1119.                                           13
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.                        been  set   then  <F4>   will  adjust   the  non-anchor
  1127.                        reference.
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.         BUILT-IN @FUNCTIONS
  1134.         InstaCalc  provides  built-in functions  which  you  can use  in  your
  1135.         formulas.  These  built-in functions each begin with  the character @,
  1136.         and are often called at functions.  A detailed list of these functions
  1137.         is in Built-In Functions in the reference section of this manual.
  1138.  
  1139.  
  1140.  
  1141.  
  1142.         USING THE COMMAND MENUS
  1143.         When you want  to execute a command  in InstaCalc, it will  usually be
  1144.         through InstaCalc's menu system.  A menu is simply a list  of commands
  1145.         which you can pick from.  Through  the menus you can manipulate cells,
  1146.         ranges,  or the  entire  Worksheet, graph  or  print data,  manipulate
  1147.         files, or even temporarily exit to the operating system.
  1148.  
  1149.         To bring up  InstaCalc's menu system, you simply press the  / key.  If
  1150.         you are  using a mouse, then you may  also press the left mouse button
  1151.         to bring up the menu.
  1152.  
  1153.         The menu system  uses a sliding bar  to show your choices.   There are
  1154.         three ways you can choose an option:
  1155.  
  1156.              -  Press the  <Left>  or <Right>  key  until the  sliding  bar is
  1157.              highlighting the option you want.  Then press <Enter> to make the
  1158.              choice.   The <Home> key  can be  pressed to highlight  the first
  1159.              menu choice, and  pressing the <End> key will  highlight the last
  1160.              menu choice.
  1161.  
  1162.              -  If you  are using  a mouse, you  may move  the sliding  bar by
  1163.              moving  the  mouse back  and forth.    Move the  mouse  until the
  1164.              sliding bar is highlighting the option  you want.  Then press the
  1165.              left mouse button to make the choice.
  1166.  
  1167.              -  As a shortcut you  can simply press  the highlighted letter of
  1168.              the desired  item (usually  the first character)  to select  that
  1169.              option.
  1170.  
  1171.         A help  line appears  above the main  menu.   This line  describes the
  1172.         highlighted menu option.  When you move the sliding bar to a new item,
  1173.         this help line will change to  display a line of help about the  newly
  1174.         highlighted item.
  1175.  
  1176.         When you choose  an option from the  menu, a new  submenu will pop  up
  1177.         which works the same as the main menu.  As each new submenu is chosen,
  1178.         the previous  menus remain on-screen,  providing you with a  "tree" of
  1179.         your commands.  To  go back one level, simply press  the <Esc> key (or
  1180.         the right mouse  button).  To clear all  the menus from the  screen at
  1181.         once, press the <BkSp> key (or both mouse buttons simultaneously.
  1182.  
  1183.  
  1184.  
  1185.                                           14
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.         A detailed list  of menu commands  can be  found in InstaCalc  Command
  1193.         Menus in the reference section of this manual.
  1194.  
  1195.  
  1196.  
  1197.         USING THE FUNCTION KEYS
  1198.         Several of InstaCalc's commands are assigned to one of the 10 function
  1199.         keys instead of  or in addition to  the command menus.   Several other
  1200.         commands are also assigned to one of the function keys with the <Ctrl>
  1201.         key pressed.   To execute one of these  commands, simply hold down the
  1202.         <Ctrl> key and then press the appropriate function key.
  1203.  
  1204.  
  1205.  
  1206.         SAVING AND RETRIEVING DATA
  1207.         As you are creating and using spreadsheets, your data is stored in the
  1208.         memory  of your  PC.    You should  store  your  spreadsheets on  disk
  1209.         periodically throughout the  day or session and definitely  at the end
  1210.         of  each  day.   In the  event  of a  power  outage or  if  you should
  1211.         forgetfully turn off the machine before a save has been done, the data
  1212.         entered since the last save to disk is lost.
  1213.  
  1214.         Saving         You can save your worksheet to a file on disk using the
  1215.                        /File  Save command.  If you  just want to save a small
  1216.                        part of your spreadsheet, the /File Xtract command will
  1217.                        provide that capability.
  1218.  
  1219.         Retrieving     When you  want to read  a file  off the disk  back into
  1220.                        memory, you should use the /File Retrieve command.
  1221.  
  1222.         Importing      The /File  Import command lets  you bring in  data from
  1223.                        just about any source  and use it in  your spreadsheet.
  1224.                        InstaCalc can  import data  from Lotus  1-2-3 (WKS  and
  1225.                        WK1), dBase II/III/III+ , DIF and ASCII files.
  1226.  
  1227.         Exporting      InstaCalc  can export  its  data  in several  different
  1228.                        formats,  and  most software  packages  are capable  of
  1229.                        reading  at least  one of them.   InstaCalc  can export
  1230.                        Lotus 1-2-3  (in two  forms, WKS or  WK1), dBase  II or
  1231.                        dBase III or III+, DIF, or ASCII files.
  1232.  
  1233.  
  1234.  
  1235.         USING THE FILE MANAGER
  1236.         InstaCalc provides many features designed to simplify its use.  One of
  1237.         these features  is the Visual  File Manager.  The  File Manager allows
  1238.         you to manipulate  files, directories, and  drives by simply  pointing
  1239.         and selecting.  It may be accessed by two methods.
  1240.  
  1241.              - Any time  you are asked for  a file name, pressing  the <Enter>
  1242.              key  without a file  name will bring the  File Manager forward to
  1243.              assist you.
  1244.  
  1245.              - To  access the  complete listing of  files, select  /File Files
  1246.              from the command menu.
  1247.  
  1248.  
  1249.  
  1250.  
  1251.                                           15
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.         CHANGING YOUR SPREADSHEET'S APPEARANCE
  1259.         InstaCalc lets you change the way numbers are displayed  on the screen
  1260.         by  assigning a  "format" to  cells.   You  might set  a  cell to  the
  1261.         Currency format, for example, so that the number in that cell  will be
  1262.         displayed with a leading  dollar sign.  Changing the format  of a cell
  1263.         does not  change the  value stored  in the cell,  only the  way it  is
  1264.         displayed on the screen (and printouts).
  1265.  
  1266.         Normally, when you enter data into  a cell, the cell will take on  the
  1267.         global  (Worksheet)  format.   You  can  see what  this  format is  by
  1268.         pressing  <Ctrl><F8> to  bring up  the status  window.   The Worksheet
  1269.         format may be changed by using the /Worksheet Format command.
  1270.  
  1271.         The format of an individual cell may be changed using the /Cell Format
  1272.         command, and the format  of a range of cells may  be changed using the
  1273.         /Range Format command.   You should use care when formatting ranges of
  1274.         blank cells, because formatted cells use up memory, even if the cells'
  1275.         contents are blank.
  1276.  
  1277.         A cell may be set to any of the following formats:
  1278.  
  1279.         General   The value  is displayed  with only  the necessary  number of
  1280.                   decimal places.
  1281.  
  1282.         Currency  The value  is displayed with  a preceding dollar sign  and a
  1283.                   selected  number  of  decimal  places.    If  the  value  is
  1284.                   negative, the value  is enclosed in parentheses  rather than
  1285.                   displayed with a negative sign.  There are two sub-options:
  1286.  
  1287.                   Comma     A comma will be inserted every three whole digits.
  1288.                             (Example: $103,297.25)
  1289.  
  1290.                   NoComma   No comma is inserted in the number.
  1291.  
  1292.  
  1293.         Fixed     The  value  is displayed  with  a  fixed number  of  decimal
  1294.                   places.   Values  which are  very large  or very  small will
  1295.                   appear  in  scientific  notation.     Four  sub-options  are
  1296.                   available:
  1297.  
  1298.                   Comma     A  comma will be inserted every three whole digits
  1299.                             (Example:  12,345.67).     Negative   numbers  are
  1300.                             preceded by a negative sign.
  1301.  
  1302.                   NoComma   No  comma is  inserted in  the  number.   Negative
  1303.                             numbers are preceded by a negative sign.
  1304.  
  1305.                   A ()      No  comma is  inserted in  the  number.   Negative
  1306.                             numbers are enclosed in parentheses.
  1307.  
  1308.                   B (,)     A comma will be inserted every three whole digits.
  1309.                             Negative numbers are enclosed in parentheses.
  1310.  
  1311.         Percent   The value is  displayed as a percentage with  a fixed number
  1312.                   of decimal places.   The value is multiplied by  100, and is
  1313.                   displayed with  a trailing percent sign %.   Two sub-options
  1314.                   are available:
  1315.  
  1316.  
  1317.                                           16
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.                   Comma     A comma will be inserted every three whole digits.
  1325.                             (Example: 1,024%)
  1326.  
  1327.                   NoComma   No comma is inserted in the number.
  1328.  
  1329.         Science   The value  is displayed in  exponential form, and  shows the
  1330.                   power  of 10 that  the number  must be  multiplied by.   For
  1331.                   example, 1.78E+07 means 1.78 times 10^7.
  1332.  
  1333.         Time      A time number (usually provided by one of the InstaCalc time
  1334.                   functions) is displayed in one of two ways.
  1335.  
  1336.                   AM/PM     The time appears in the  a.m. or p.m. form.  Thus,
  1337.                             5:00 in the evening appears as 5:00 p.m.
  1338.  
  1339.                   Military  The time appears  as it would on a  24-hour clock.
  1340.                             Thus, 5:00 in the evening appears as 17:00.
  1341.  
  1342.         Date      A date number (usually provided by one of the InstaCalc date
  1343.                   functions) is displayed in one of five ways.
  1344.  
  1345.                   dd-mmm-yy      June 10, 1960 appears as 10-Jun-60.
  1346.                   dd-mmm         June 10, 1960 appears as 10-Jun.
  1347.                   mmm-yy         June 10, 1960 appears as Jun-60.
  1348.                   mm/dd/yy       June 10, 1960 appears as 06/10/60.
  1349.                   month dd, yyyy June 10, 1960 appears as June 10, 1960.
  1350.  
  1351.         Hidden    The value will not be displayed on the screen.  If you later
  1352.                   want to unhide  a hidden cell, simply  set it to any  of the
  1353.                   other formats.
  1354.  
  1355.         Label     All formulas (rather than their values) will be displayed on
  1356.                   screen.
  1357.  
  1358.         Reset     Resets the cell to the default format.
  1359.  
  1360.  
  1361.         If the formatted value  contains more characters than the width of the
  1362.         column  it is  in,  the cell  display will  be  filled with  a  row of
  1363.         asterisks like  *******.   You can fix  this condition  in one  of two
  1364.         ways.
  1365.  
  1366.              -  Select a  display format  for  the cell  which requires  fewer
  1367.              characters to display  (or reduce the number of  digits after the
  1368.              decimal point to be displayed).
  1369.  
  1370.              - Increase the width of the column so the formatted cell will fit
  1371.              in it.  You can do this with the /Cell Width command.
  1372.  
  1373.  
  1374.  
  1375.         PRINTING YOUR DATA
  1376.         InstaCalc allows you to print out the  data you have entered and gives
  1377.         you control over what is printed and  how the printout looks.  You can
  1378.         print your  entire worksheet  or any portion  of it,  including border
  1379.         rows and columns.
  1380.  
  1381.  
  1382.  
  1383.                                           17
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.         Just define the range to print with the /Print Block command,  set any
  1391.         options  using the /Print Options command,  then send the data to your
  1392.         printer with the /Print Go command.
  1393.  
  1394.         More details on printing is available in the reference section of this
  1395.         manual.
  1396.  
  1397.  
  1398.  
  1399.         GRAPHING YOUR DATA
  1400.         Once  your data  has been  entered InstaCalc  can provide  you with  a
  1401.         graphic representation of that data in only a few keystrokes.
  1402.  
  1403.         For example, if you wanted to print a bar graph of your data:
  1404.  
  1405.         1.  Select /Graph from the main menu to begin.
  1406.  
  1407.         2.  Select the  Type option.   A menu will appear  from which you  may
  1408.         select the graph type.  Select Bar from the menu.
  1409.  
  1410.         3.  Next, you must tell InstaCalc what data you wish  to have graphed.
  1411.         This is done  by defining a  range of data  for each axis.   The  menu
  1412.         allows  you to define the range of data  to graph on the X axis and up
  1413.         to 6  data ranges to graph along the Y axis.  These ranges are named A
  1414.         through F on the menu.
  1415.  
  1416.         4.   You may add titles,  labels, and legends to your  graph using the
  1417.         Options selection.
  1418.  
  1419.         5.  You can now view your graph by selecting View from the menu.  When
  1420.         you are  satisfied with the choices that you  have made, you may Print
  1421.         your graph.
  1422.  
  1423.  
  1424.  
  1425.         RECORDING A MACRO
  1426.         Although  InstaCalc's  macro  language is  powerful  enough  to create
  1427.         sophisticated business  applications, there  are many  times when  you
  1428.         will want  to simply repeat  a sequence  of keystrokes over  and over.
  1429.         InstaCalc's Macro  Recorder provides  an easy way  to create  and play
  1430.         back often  repeated key sequences.  The  macro recorder allows you to
  1431.         assign a sequence  of keystrokes to a  single key, and when  you press
  1432.         that single  key,  it  will  automatically  play  back  the  keystroke
  1433.         sequence for you.
  1434.  
  1435.         To begin recording a macro, you simply press the <Ctrl><F10> key.  You
  1436.         then press the key you want  to assign the macro to, and the  word REC
  1437.         will begin flashing  in the upper right corner of the screen.  As long
  1438.         as  REC  is  flashing,  InstaCalc   will  be  memorizing  any  further
  1439.         keystrokes you type.  When you want  to stop recording, just press the
  1440.         <Ctrl><F10> key again.  Your macro will be stored in a file whose name
  1441.         corresponds to  the key  you assigned the  macro to.   For  example, a
  1442.         macro assigned to <Ctrl>T would be named CTRLT.MAC.
  1443.  
  1444.         Later, when you press <Ctrl>T, InstaCalc  will look for the macro file
  1445.         CTRLT.MAC, and play  back the keystrokes which  are saved there.   You
  1446.         can assign a macro to just  about any key which isn't already  defined
  1447.  
  1448.  
  1449.                                           18
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.         and used by InstaCalc.  For example, you can't redefine the arrow keys
  1457.         to do  something else, but  you can assign other  keys to do  the same
  1458.         thing as the arrow keys.  
  1459.  
  1460.  
  1461.         THE INSTACALC TEXT EDITOR
  1462.         InstaCalc  provides a simple  text editor which you  can use to create
  1463.         and edit your application  programs.  This editor can be  called up in
  1464.         two different ways.
  1465.  
  1466.              - The /Macro  Edit command will ask you for the  name of a macro.
  1467.              You may enter a file name, or press <Enter> to select a file from
  1468.              the file manager.  You will then be placed in the  InstaCalc text
  1469.              editor.
  1470.  
  1471.              - You  may press <F5> when you are  using the /File Files command
  1472.              to edit the highlighted file.
  1473.  
  1474.         Details on the Text Editor are provided in the /Macro Edit  section of
  1475.         this manual.
  1476.  
  1477.  
  1478.         THE INSTACALC MACRO LANGUAGE
  1479.         In  addition to  the macro  recorder,  InstaCalc provides  a built  in
  1480.         programming language  which provides  additional capabilities such  as
  1481.         windowing,  menu creation,  control structures,  and  printer and  DOS
  1482.         access.
  1483.  
  1484.         An  InstaCalc application  program  simply  consists  of a  text  file
  1485.         containing  the commands  which you  would like InstaCalc  to execute.
  1486.         You may give your program files any valid DOS name, but  the extension
  1487.         must be .MAC  (for example MYPROG.MAC).  Your  application program can
  1488.         consist  of  keystroke  macros,  InstaCalc  Command Environment  (ICE)
  1489.         commands, or both.
  1490.  
  1491.         The InstaCalc Command  Environment also provides the  ability to debug
  1492.         your macros.   For  more details on  ICE and  macros, see  the section
  1493.         titled INSTACALC APPLICATIONS.
  1494.  
  1495.  
  1496.  
  1497.         CUTTING DATA FROM OTHER PROGRAMS
  1498.         InstaCalc provides the ability to import data directly from the screen
  1499.         of another program into the worksheet.  This allows you to import text
  1500.         and numbers from your word processor, data  base manager, or any other
  1501.         type of program.   You may import  multiple columns off the  screen at
  1502.         the same time.
  1503.  
  1504.         When you are in your  application program and you want to  cut data on
  1505.         the screen into InstaCalc:
  1506.  
  1507.              - Press  the Hot Key (InstaCalc must  have been loaded before you
  1508.              started  up  your   application  program).    This  will  pop  up
  1509.              InstaCalc.
  1510.  
  1511.              - Move the cell pointer to the cell where you want the first line
  1512.              of the imported data to be placed.
  1513.  
  1514.  
  1515.                                           19
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.              - Press <F7>Cut.  This will switch the display back to the screen
  1523.              you want to cut from.
  1524.  
  1525.              - Use the arrow  keys to move the cursor to the upper left corner
  1526.              of the block you want  to cut, then press  the period key.   This
  1527.              sets the anchor for the block.
  1528.  
  1529.              - Use the arrow keys to begin marking the block you  want to cut.
  1530.              The block will be highlighted on the screen.
  1531.  
  1532.              - Once  you have highlighted the  column you want to  cut, either
  1533.              press <Enter> to cut  that column, or press the period  key again
  1534.              to set the anchor for another column.
  1535.  
  1536.              - If you choose  to cut more than one column off  the screen at a
  1537.              time, continue to  set the anchor, highlight the  column, set the
  1538.              anchor for the next column and so  on.  Once you have highlighted
  1539.              all of  the  columns you  want to  cut, press  <Enter> to  finish
  1540.              cutting the data from the screen.
  1541.  
  1542.              - Pressing <Esc> at any time will cancel the last selection.
  1543.  
  1544.  
  1545.         PASTING DATA TO OTHER PROGRAMS
  1546.         InstaCalc  provides  the ability  to  paste  data  from the  Worksheet
  1547.         directly into another  program.  This allows you  to paste spreadsheet
  1548.         data  directly  into a  word  processor  document or  database  record
  1549.         without even having to exit your program.
  1550.  
  1551.         When you want to paste spreadsheet data into another program:
  1552.  
  1553.              - Make sure the cursor in the other program is where you want the
  1554.              exported data to  be placed.  If you are pasting into your editor
  1555.              or word processor, make sure  any "auto indent" feature is turned
  1556.              off, or each  line of the pasted  data will shift further  to the
  1557.              right.
  1558.  
  1559.              -  Press the Hot Key (InstaCalc must  have been loaded before you
  1560.              started  up   your  application  program).    This  will  pop  up
  1561.              InstaCalc.
  1562.  
  1563.              - Press <F8>Paste.
  1564.  
  1565.              - Use the arrow keys to move the cursor  to the upper left corner
  1566.              of  the block you want to paste, then press the period key.  This
  1567.              sets the anchor for the block.
  1568.  
  1569.              - Use  the arrow  keys to  begin marking  the block  you want  to
  1570.              paste.  The block will be highlighted on the screen.
  1571.  
  1572.              -  Once you have  highlighted the block you  want to paste, press
  1573.              <Enter> to select that block for pasting.
  1574.  
  1575.              -  Select the  key you want  each row  terminated with.   You may
  1576.              select <Enter>, <Down>, or <Right>.
  1577.  
  1578.              - Pressing <Esc> at any time will cancel the last selection.
  1579.  
  1580.  
  1581.                                           20
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.         REFERENCE
  1589.  
  1590.  
  1591.         THE FUNCTION KEYS
  1592.         Several of InstaCalc's commands are assigned to one of the 10 function
  1593.         keys instead of  or in addition to  the command menus.   Several other
  1594.         commands are also assigned to one of the function keys with the <Ctrl>
  1595.         key pressed.  To  execute one of these commands, simply  hold down the
  1596.         <Ctrl> key and then press the appropriate function key.
  1597.  
  1598.         <F1> Help      This key calls up context sensitive help.
  1599.  
  1600.         <F2> Edit      This key allows you to edit the current cell.
  1601.  
  1602.         <F3> Range     This key  calls up a menu of defined range names.  This
  1603.                        key can be used any time you are asked to define a cell
  1604.                        or  range.   You may  pick a  range from  this list  by
  1605.                        highlighting the name and pressing the <Enter> key.  If
  1606.                        there  are more than  16 range  names defined,  you may
  1607.                        press  the <PgUp>  and <PgDn> keys  to view  more range
  1608.                        names.
  1609.  
  1610.         <F4> Absolute  This key cycles  absolute and relative  references when
  1611.                        you  are pointing out  cell references with  the cursor
  1612.                        keys.  If no anchor is set then the first coordinate is
  1613.                        adjusted. If  the anchor  has been  set then <F4>  will
  1614.                        adjust the non-anchor reference.
  1615.  
  1616.         <F5> GoTo      This key allows you to move the cell pointer to another
  1617.                        cell.  You  will be asked for  the name of the  cell to
  1618.                        move  to.  For example, if you enter Q23, then the cell
  1619.                        pointer will  be moved  to that cell.   If you  enter a
  1620.                        range name, then the cell  pointer will be moved to the
  1621.                        cell in the  upper left corner of  the range.  You  may
  1622.                        also press  the <F3>  Range key and  pick a  range name
  1623.                        from a menu of existing names.
  1624.  
  1625.         <F6> Search    This key allows you  to search for some text in a cell,
  1626.                        and allows you to move the cell pointer to that cell or
  1627.                        replace the text with other text.
  1628.  
  1629.                        Find           This option allows you to enter the text
  1630.                                       you want to search for.
  1631.  
  1632.                        Replace with   This option allows you to enter the text
  1633.                                       you want to replace the Find text with.
  1634.  
  1635.                        Ignore case    If you set  this option to No,  then the
  1636.                                       Find  text   must  match  text   in  the
  1637.                                       Worksheet  exactly  to be  considered  a
  1638.                                       match.   If this option is Yes, then the
  1639.                                       Find  text   will  match  text   in  the
  1640.                                       Worksheet if the  letters are the  same,
  1641.                                       even if some are uppercase and  some are
  1642.                                       lower case.
  1643.  
  1644.                        Block          This  option allows  you  to define  the
  1645.  
  1646.  
  1647.                                           21
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.                                       range of cells you want to search.  This
  1655.                                       allows  you to  limit your search  to as
  1656.                                       small a range of cells as you want.
  1657.  
  1658.                        Start          This  command  begins   the  search  and
  1659.                                       replace operation.  InstaCalc will begin
  1660.                                       searching through the defined range, and
  1661.                                       will  stop when it  finds a match.   The
  1662.                                       matching cell  and its contents  will be
  1663.                                       displayed, and you will be  asked if you
  1664.                                       want to  perform the Replace.  There are
  1665.                                       4 options.
  1666.  
  1667.                                       No   No, don't perform  the replace, but
  1668.                                            continue searching.
  1669.  
  1670.                                       Yes  Yes, perform the  replace, and then
  1671.                                            continue searching.
  1672.  
  1673.                                       All  Yes, perform  the replace  on this,
  1674.                                            and  all  other matches  which  you
  1675.                                            find.  This is  a global search and
  1676.                                            replace, and you will  not be asked
  1677.                                            for any further confirmation.
  1678.  
  1679.                                       GoTo No, don't perform  the replace, and
  1680.                                            just move the cell pointer to  this
  1681.                                            new  cell  and   quit  any  further
  1682.                                            searching.
  1683.  
  1684.                                       If you just  want to quit, then  you can
  1685.                                       simply press the <Esc> key.
  1686.  
  1687.         <F7> Cut       This key allows you  to cut data off the screen  of the
  1688.                        program you popped up through (if you started InstaCalc
  1689.                        with the  /p option).   See the section  titled Cutting
  1690.                        Data From Other Programs.
  1691.  
  1692.         <F8> Paste     This key allows you  to paste data from InstaCalc  into
  1693.                        the  program  you  popped up  through  (if  you started
  1694.                        InstaCalc with the /p option).   See the section titled
  1695.                        Pasting Data To Other Programs.
  1696.  
  1697.         <F9> Recalc    This key  recalculates  the  entire  worksheet.    This
  1698.                        command  is only  necessary  when  you  have  used  the
  1699.                        /Worksheet  Calc Manual  command  to disable  automatic
  1700.                        recalculation.
  1701.  
  1702.         <F10> Graph    This  key displays the  currently defined graph.   This
  1703.                        key is simply a shortcut for the /Graph View command.
  1704.  
  1705.         <^F1> Help     This key brings up the Help Index of the help system.
  1706.  
  1707.         <^F2> Debug    This key brings  up the application program  debug menu
  1708.                        when  you are  single stepping  through an  application
  1709.                        program.   Simply select Edit from the  menu, then type
  1710.                        in the name of the cell you want to examine.  InstaCalc
  1711.  
  1712.  
  1713.                                           22
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.                        will display the current contents of the cell, and will
  1721.                        allow you to  modify those contents if you  want.  When
  1722.                        you  press  <Enter>, the  InstaCalc will  resume single
  1723.                        stepping through the application.
  1724.  
  1725.         <^F3> Break    This key breaks  out of a running application.   If you
  1726.                        press  this key when an application program is running,
  1727.                        it will  abort the  application unless  the application
  1728.                        program  has  used   the  #BREAK  command   to  disable
  1729.                        breaking.
  1730.  
  1731.         <^F4> Mark     This key marks  the current cell so that  you can later
  1732.                        return to it with the  <Ctrl><F5> key.  For example, if
  1733.                        you press <Ctrl><F4> when  the cell pointer is  on cell
  1734.                        Q53, then  you can move  anywhere in the  worksheet and
  1735.                        return  to cell Q53  by simply pressing  the <Ctrl><F5>
  1736.                        key.
  1737.  
  1738.         <^F5> ToMark   This  key  returns   to  the  last  cell   marked  with
  1739.                        <Ctrl><F4>.
  1740.  
  1741.         <^F6> Files    This key calls up the File  Manager.  You will be asked
  1742.                        to enter a mask to  tell InstaCalc which files you want
  1743.                        to be  displayed.  Pressing  <Enter> will use  the Mask
  1744.                        *.*, which will display all of the files in the current
  1745.                        directory.
  1746.  
  1747.         <^F7> EGA43    This key toggles  43/50 line mode on  EGA/VGA monitors.
  1748.                        If you have an EGA or VGA monitor, this function allows
  1749.                        you to see twice as many rows on the screen as normal.
  1750.  
  1751.         <^F8> Status   This key displays a  status window.  The  status window
  1752.                        lists the current  directory and file name,  the amount
  1753.                        of memory available, the current date and time, and the
  1754.                        current default settings.
  1755.  
  1756.         <^F9> Enter    This key toggles Enter mode.   This mode is  especially
  1757.                        useful for  repetitive data  entry.   When  you are  in
  1758.                        Enter mode, pressing the <Enter> key to enter data into
  1759.                        a  cell will  enter that  data and  them move  the cell
  1760.                        pointer in the last  direction moved.  For  example, if
  1761.                        the  cell pointer  last  moved down,  then typing  in a
  1762.                        number and pressing <Enter> will enter that number into
  1763.                        the  highlighted cell, and  will move the  cell pointer
  1764.                        down to the  next cell.   This  allows you  to use  the
  1765.                        numeric  keypad and the  <Enter> key  to enter  rows or
  1766.                        columns of data.
  1767.  
  1768.         <^F10> Learn   This  key turns  the macro  recorder on  and off.   The
  1769.                        macro  recorder  allows  you to  assign  a  sequence of
  1770.                        keystrokes to  a single key,  and when  you press  that
  1771.                        single  key,  it  will  automatically   play  back  the
  1772.                        keystroke sequence for you.
  1773.  
  1774.                        If  a macro  already exists  for  the key  you want  to
  1775.                        record  to,  InstaCalc   will  provide  the   following
  1776.                        options:
  1777.  
  1778.  
  1779.                                           23
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.                        Replace   Replace the existing macro with this new one.
  1787.  
  1788.                        Edit      Edit the existing macro.
  1789.  
  1790.                        Cancel    Cancel this operation.
  1791.  
  1792.  
  1793.  
  1794.  
  1795.         INSTACALC COMMAND MENUS
  1796.         When you want  to execute a command  in InstaCalc, it will  usually be
  1797.         through InstaCalc's menu  system.  A menu is simply a list of commands
  1798.         which you can pick from.  Through the menus you can  manipulate cells,
  1799.         ranges,  or  the entire  Worksheet,  graph or  print  data, manipulate
  1800.         files, or even temporarily exit to the operating system.
  1801.  
  1802.         To bring up  InstaCalc's menu system, you  simply press the /  key (or
  1803.         press  the left button  on your mouse).   At the top  of the InstaCalc
  1804.         screen you will see the following menu.
  1805.  
  1806.         Cell Range Worksheet File Print Data Graph OpSys Quit
  1807.  
  1808.         The menu system uses  a sliding bar to  show your choices.   There are
  1809.         two ways to choose an option:
  1810.  
  1811.              - Press  the <Left>  or  <Right> key  until  the sliding  bar  is
  1812.              highlighting the option you want.  Then press <Enter> to make the
  1813.              choice.   The <Home> key  can be  pressed to highlight  the first
  1814.              menu choice, and  pressing the <End> key will  highlight the last
  1815.              menu choice.
  1816.  
  1817.              - As a  shortcut you can simply  press the highlighted  letter of
  1818.              the desired  item (usually the  first character)  to select  that
  1819.              option.
  1820.  
  1821.         A  help line  appears above the  main menu.   This line  describes the
  1822.         highlighted menu option.  When you move the sliding bar to a new item,
  1823.         this help  line will change to display a  line of help about the newly
  1824.         highlighted item.
  1825.  
  1826.         When you  choose an option  from the menu, a  new submenu will  pop up
  1827.         which  works exactly  the same  way  as the  main menu.   As  each new
  1828.         submenu  is chosen, the previous menus remain on-screen, providing you
  1829.         with a "tree" of your  commands.  To go  back one level, simply  press
  1830.         the <Esc> key.   To clear all  of the menus  from the screen at  once,
  1831.         press the <BkSp> key.
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.                                           24
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.         ---------------------------------------------------------------------
  1853.         /Cell Format
  1854.         ---------------------------------------------------------------------
  1855.         Function  Change the way a value in a cell is displayed.
  1856.  
  1857.         Remarks   This command allows you to modify the display of the current
  1858.                   cell by setting its format.   If the value using the  format
  1859.                   you  select is  too long  to  fit into  the cell's  assigned
  1860.                   width, a row of asterisks will appear.
  1861.  
  1862.         Options   General,  Currency,  Fixed,  Percent,  Science, Time,  Date,
  1863.                   Hidden, Label, Reset
  1864.  
  1865.  
  1866.         ---------------------------------------------------------------------
  1867.         /Cell Width
  1868.         ---------------------------------------------------------------------
  1869.         Function  Change a column width.
  1870.  
  1871.         Remarks   This command allows you to  make the column the cell pointer
  1872.                   is in wider or narrower (or even hide it).
  1873.  
  1874.         Options   The /Cell Width command has two options:
  1875.  
  1876.                   Set       The set  option allows  you to  change the  width.
  1877.                             You  will be asked how  wide the column should be.
  1878.                             You may  either enter a  number, or use  the arrow
  1879.                             keys to change the width.  <Left>  will narrow the
  1880.                             column, and <Right> will widen the column.
  1881.  
  1882.                   Reset     Resets the  column the cell  pointer is in  to the
  1883.                             global width.
  1884.  
  1885.  
  1886.         ---------------------------------------------------------------------
  1887.         /Cell Erase
  1888.         ---------------------------------------------------------------------
  1889.         Function  Erase a cell from memory.
  1890.  
  1891.         Remarks   This command erases  the contents of the current  cell.  The
  1892.                   cell will retain its formatting.
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.                                           25
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.         ---------------------------------------------------------------------
  1919.         /Cell Justify
  1920.         ---------------------------------------------------------------------
  1921.         Function  Justify text in a cell.
  1922.  
  1923.         Remarks   This command allows  you to change the way  text strings are
  1924.                   displayed  in the cell  which the cell  pointer is  in.  The
  1925.                   command has three options:
  1926.  
  1927.         Options   Left      Justifies text  in the  current cell  to the  left
  1928.                             edge of  the cell.   When a  label is  entered, it
  1929.                             will appear beginning in the leftmost character of
  1930.                             the cell.
  1931.  
  1932.                   Right     Justifies  text in the  current cell to  the right
  1933.                             edge of  the cell.   When a  label is  entered, it
  1934.                             will appear flush right in the cell.
  1935.  
  1936.                   Center    Justifies text in  the current cell to  the center
  1937.                             of the  cell.   When a label  is entered,  it will
  1938.                             appear centered in the cell.
  1939.  
  1940.  
  1941.  
  1942.         ---------------------------------------------------------------------
  1943.         /Cell Copy
  1944.         ---------------------------------------------------------------------
  1945.         Function  Copy a cell to another cell or range of cells.
  1946.  
  1947.         Remarks   This command copies  the contents of the cell  that the cell
  1948.                   pointer is  in to another cell or range  of cells.  You will
  1949.                   be asked to  define the cell or  range of cells you  want to
  1950.                   copy to.   If you  copy the cell to  more than one  cell, an
  1951.                   individual  copy will  be made  in  each of  the destination
  1952.                   cell.  If  the source cell contains a  formula, all relative
  1953.                   references will be adjusted when the formula is copied.
  1954.  
  1955.         Example   Cell B12 sums up the cells above it with the formula:
  1956.  
  1957.                   =@SUM(B1..B11)
  1958.  
  1959.                   You want  cells C12 through  X12 to sum  up the cells  above
  1960.                   each of  them.   Simply move the  cell pointer to  cell B12,
  1961.                   select  /Cell Copy,  and  define  the range  to  copy to  as
  1962.                   C12..X12.   The  formula will  be  copied to  each of  those
  1963.                   cells,  and the relative  references in the  formula will be
  1964.                   adjusted so that they sum up the proper cells.  For example,
  1965.                   cell S12 will contain the formula:
  1966.  
  1967.                   =@SUM(S1..S11)
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.                                           26
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.         ---------------------------------------------------------------------
  1985.         /Cell Move
  1986.         ---------------------------------------------------------------------
  1987.         Function  Move the contents of a cell to another cell.
  1988.  
  1989.         Remarks   This command  moves the contents  of the cell that  the cell
  1990.                   pointer is in to a different location.  You will be asked to
  1991.                   define the destination cell.  If the current cell contains a
  1992.                   formula, then  the references will  be adjusted to  point to
  1993.                   the same data.  References in other cells which refer to the
  1994.                   moved cell  will also be  adjusted so that they  continue to
  1995.                   point to the same data.
  1996.  
  1997.  
  1998.  
  1999.         ---------------------------------------------------------------------
  2000.         /Cell Protect
  2001.         ---------------------------------------------------------------------
  2002.         Function  Set protection on a cell.
  2003.  
  2004.         Remarks   This command allows the current cell to be protected against
  2005.                   changes.  If, for example,  the cell contains a formula that
  2006.                   you do not  want changed, use the /Cell  Protect Yes command
  2007.                   to guard against changes.  If you thereafter want to edit or
  2008.                   change that  formula, use  the /Cell  Protect No  command to
  2009.                   unprotect the cell.  The default mode is "protected."
  2010.  
  2011.                   A  protected  cell  may still  be  modified  until Worksheet
  2012.                   protection is  enabled using  the /Worksheet  Protect Enable
  2013.                   command.  Worksheet Protect  is much like a "master  switch"
  2014.                   which  turns  protection  capabilities on  and  off  for the
  2015.                   entire Worksheet.
  2016.  
  2017.         Options   Yes  Enables protection on the current cell.
  2018.                   No   Disables protection on the current cell.
  2019.  
  2020.  
  2021.  
  2022.  
  2023.         ---------------------------------------------------------------------
  2024.         /Range Format
  2025.         ---------------------------------------------------------------------
  2026.         Function  Change the way values in a range of cells is displayed.
  2027.  
  2028.         Remarks   This command  allows you to  choose the best format  for the
  2029.                   cells in a range.  You will  be asked to define the range of
  2030.                   cells you want to change the format of.
  2031.  
  2032.         Options   General,  Currency,  Fixed,  Percent, Science,  Time,  Date,
  2033.                   Hidden, Label, Reset
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.                                           27
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.         ---------------------------------------------------------------------
  2051.         /Range Width
  2052.         ---------------------------------------------------------------------
  2053.         Function  Set the width of several columns at once.
  2054.  
  2055.         Remarks   This command  allows you to  make several  columns wider  or
  2056.                   narrower (or even hide them).   You will be asked to  define
  2057.                   the range of columns to widen or narrow.
  2058.  
  2059.         Options   The /Range Width command has two options:
  2060.  
  2061.                   Set       The set option allows  you to change the width  of
  2062.                             several columns at the same  time.  You may either
  2063.                             enter a number,  or use the  arrow keys to  change
  2064.                             the width.   <Left>  will narrow  the column,  and
  2065.                             <Right> will widen the column.
  2066.  
  2067.                   Reset     Resets  the columns  in the  range  to the  global
  2068.                             width.
  2069.  
  2070.  
  2071.         ---------------------------------------------------------------------
  2072.         /Range Erase
  2073.         ---------------------------------------------------------------------
  2074.         Function  Erase a range of cell's contents from memory.
  2075.  
  2076.         Remarks   This  command erases the contents of a  range of cells.  You
  2077.                   will  be asked  to define  the range  of cells  you want  to
  2078.                   erase.
  2079.  
  2080.  
  2081.         ---------------------------------------------------------------------
  2082.         /Range Justify
  2083.         ---------------------------------------------------------------------
  2084.         Function  Justify text in a range of cells.
  2085.  
  2086.         Remarks   This command allows  you to change the way  text strings are
  2087.                   displayed in each  cell in a  range.  You  will be asked  to
  2088.                   define the range of cells you want to change.
  2089.  
  2090.         Options   Left      Justifies text in  each cell of  the range to  the
  2091.                             left edge of  the cell.  When a  label is entered,
  2092.                             it will appear beginning in the leftmost character
  2093.                             of the cell.
  2094.  
  2095.                   Right     Justifies  text in each  cell of the  range to the
  2096.                             right edge of the cell.   When a label is entered,
  2097.                             it will appear flush right in the cell.
  2098.  
  2099.                   Center    Justifies text in  each cell of  the range to  the
  2100.                             center of the  cell.  When a label  is entered, it
  2101.                             will appear centered in the cell.
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.                                           28
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.         ---------------------------------------------------------------------
  2117.         /Range Copy
  2118.         ---------------------------------------------------------------------
  2119.         Function  Copy a range of cells to another location.
  2120.  
  2121.         Remarks   This  command copies  the contents  of a  range of  cells to
  2122.                   another location.   You  will first be  asked to  define the
  2123.                   cell or range of cells you want to copy (source  range), and
  2124.                   then the location you want to copy to (destination).  If the
  2125.                   destination  you define is  a single cell,  the source range
  2126.                   will  be   copied  starting  at  that  location.     If  the
  2127.                   destination  contains more than  one cell, the  source range
  2128.                   will be copied to each cell in the destination  range.  This
  2129.                   is useful for  copying a range of cells  to several adjacent
  2130.                   locations  at once.   If any  of the source  cells contain a
  2131.                   formula, all relative  references will be adjusted  when the
  2132.                   formula is copied.
  2133.  
  2134.         Example   Column A contains a list of formulas from row 1  through 10.
  2135.                   You want to copy this range of formulas to columns B through
  2136.                   F.  Select  /Range Copy, and select the range A1..A10 as the
  2137.                   source range.  Since you want to copy the range to columns B
  2138.                   through  F,  you  should  select  the range  B1..F1  as  the
  2139.                   destination.   InstaCalc will then copy  the source range to
  2140.                   each cell in the destination range.
  2141.  
  2142.  
  2143.  
  2144.  
  2145.         ---------------------------------------------------------------------
  2146.         /Range Move
  2147.         ---------------------------------------------------------------------
  2148.         Function  Move the contents of a range of cells.
  2149.  
  2150.         Remarks   This command  moves the contents  of a range  of cells  to a
  2151.                   different location.   You will be asked to  first define the
  2152.                   range  of  cells  to  move  (source  range),  and  then  the
  2153.                   destination.   If  any  of  the cells  in  the source  range
  2154.                   contains a  formula, then the references will be adjusted to
  2155.                   continue to  point to  the same data.   References  in other
  2156.                   cells which refer to the moved cell will also be adjusted so
  2157.                   that they continue to point to the same data.
  2158.  
  2159.                   When you define  the destination, you only need  to supply a
  2160.                   single cell  address; the source  range will be  copied with
  2161.                   the upper left corner in the destination cell.
  2162.  
  2163.  
  2164.         ---------------------------------------------------------------------
  2165.         /Range Name
  2166.         ---------------------------------------------------------------------
  2167.         Function  Give a name to a range of cells.
  2168.  
  2169.         Remarks   This command allows you to give a name to a cell or range of
  2170.                   cells.   This name  can then  be used  anywhere that  a cell
  2171.                   address or range  reference can be used by  either typing in
  2172.                   the  range's name  or by  pressing  the <F3>  Range key  and
  2173.  
  2174.  
  2175.                                           29
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.                   selecting the name from a menu.
  2183.  
  2184.         Options   Create    Allows you to  name the cell or range.   When this
  2185.                             option is selected, you are asked what you want to
  2186.                             name the cell or range.   The name must begin with
  2187.                             a  letter of  the  alphabet  and can  be  up to  8
  2188.                             characters long.  You are then asked to define the
  2189.                             range to name by typing in the range address or by
  2190.                             pointing out the range with the cursor keys.
  2191.  
  2192.                   Delete    Releases the range name which is associated with a
  2193.                             range.  You will  be asked to type in the  name to
  2194.                             delete.   You may  press <Enter> without  typing a
  2195.                             name, and a menu  of the current range  names will
  2196.                             appear, and you may select the name to delete from
  2197.                             the  menu.  Up to 16 names  will be displayed at a
  2198.                             time.   If  you don't  see  the name  you want  to
  2199.                             delete, use the <PgDn> and <PgUp> keys to see more
  2200.                             names.
  2201.  
  2202.                   Reset     Deletes all range names.
  2203.  
  2204.                   List      Causes  a list  of  the  current  range  names  to
  2205.                             appear.   Up to  16 names will  be displayed  at a
  2206.                             time.  Use <PgUp> and <PgDn> to see more names.
  2207.  
  2208.         Example   If you  assigned the  name PRICES to  the range  B3..C6, the
  2209.                   formula  @AVG(PRICES)  will  be  identical  to  the  formula
  2210.                   @AVG(B3..C6).  Other  /Range commands which request  a range
  2211.                   reference, such as /Range Erase,  will accept the name as an
  2212.                   address.  Pressing <F3> will bring up a menu of range names.
  2213.                   The <F5> GoTo key will also accept range names.
  2214.  
  2215.  
  2216.         ---------------------------------------------------------------------
  2217.         /Range Protect
  2218.         ---------------------------------------------------------------------
  2219.         Function  Set protection on a range of cells.
  2220.  
  2221.         Remarks   This  command allows you  to protect a range  of cells.  If,
  2222.                   for example, the  range contains  formulas that  you do  not
  2223.                   want changed,  use the /Range  Protect Yes command  to guard
  2224.                   against changes.  If you thereafter want to edit or change a
  2225.                   cell  in  the range,  use  the /Cell  Protect  No command to
  2226.                   unprotect the cell.  The default mode is "protected."
  2227.  
  2228.                   A  protected  cell  may still  be  modified  until Worksheet
  2229.                   protection is  enabled using  the /Worksheet  Protect Enable
  2230.                   command.  Worksheet  Protect is much like  a "master switch"
  2231.                   which  turns  protection  capabilities on  and  off  for the
  2232.                   entire Worksheet.
  2233.  
  2234.                   You will be asked to define the range you want to protect.
  2235.  
  2236.         Options   Yes  Enables protection on the selected range.
  2237.                   No   Disables protection on the selected range.
  2238.  
  2239.  
  2240.  
  2241.                                           30
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.         ---------------------------------------------------------------------
  2249.         /Worksheet Format
  2250.         ---------------------------------------------------------------------
  2251.         Function  Set the global default format.
  2252.  
  2253.         Remarks   This command  allows you to  choose a global format  for the
  2254.                   entire Worksheet.
  2255.  
  2256.         Options   General, Currency,  Fixed,  Percent,  Science,  Time,  Date,
  2257.                   Hidden, Label
  2258.  
  2259.  
  2260.         ---------------------------------------------------------------------
  2261.         /Worksheet Width
  2262.         ---------------------------------------------------------------------
  2263.         Function  Set the global default width.
  2264.  
  2265.         Remarks   This  command allows  you to  set the  default width  of all
  2266.                   columns in the Worksheet.  You will be prompted to enter the
  2267.                   new  global column width.  You may either enter a number, or
  2268.                   use the arrow  keys to change the width.  <Left> will narrow
  2269.                   the column, and <Right> will widen the column.
  2270.  
  2271.  
  2272.  
  2273.         ---------------------------------------------------------------------
  2274.         /Worksheet Erase
  2275.         ---------------------------------------------------------------------
  2276.         Function  Erase the worksheet from memory.
  2277.  
  2278.         Remarks   This  command   erases  the  current   Worksheet's  contents
  2279.                   entirely.  All  of the  Worksheet settings  are restored  to
  2280.                   their defaults.   You will  be asked to confirm  whether you
  2281.                   really want to erase the worksheet.
  2282.  
  2283.         Options   Yes  Erase the Worksheet from memory.
  2284.                   No   Don't erase the Worksheet from memory.
  2285.  
  2286.  
  2287.  
  2288.         ---------------------------------------------------------------------
  2289.         /Worksheet Justify
  2290.         ---------------------------------------------------------------------
  2291.         Function  Set the global default text justification.
  2292.  
  2293.         Remarks   This command allows  you to change the way  text strings are
  2294.                   displayed in each cell of  the Worksheet.  This command will
  2295.                   not change they  way existing text cells are  justified.  It
  2296.                   only  determines how  text  entered in  the  future will  be
  2297.                   displayed.  The command has three options:
  2298.  
  2299.         Options   Left      Justifies  text in cells  to the left  edge of the
  2300.                             cell.   When a  label is  entered, it will  appear
  2301.                             beginning in the leftmost character of the cell.
  2302.  
  2303.                   Right     Justifies text  in cells to the right  edge of the
  2304.                             cell.   When  a label  is entered, it  will appear
  2305.  
  2306.  
  2307.                                           31
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.                             flush right in the cell.
  2315.  
  2316.                   Center    Justifies text in cells to the center of the cell.
  2317.                             When a label  is entered, it will  appear centered
  2318.                             in the cell.
  2319.  
  2320.  
  2321.         ---------------------------------------------------------------------
  2322.         /Worksheet Ins Column
  2323.         ---------------------------------------------------------------------
  2324.         Function  Insert one or more blank columns.
  2325.  
  2326.         Remarks   This  command  inserts one  or  more  blank columns  at  the
  2327.                   current cell pointer position.   The current column  and all
  2328.                   the columns  to the right will be shifted right to make room
  2329.                   for the blank columns.  Relative references in formulas will
  2330.                   be  updated by the  change; absolute references  will remain
  2331.                   unchanged.   You will  be asked how  many blank  columns you
  2332.                   want to insert.   Use the  arrow keys to  highlight how  may
  2333.                   columns  should be  inserted.  If  you highlight  2 columns,
  2334.                   then 2 columns will be inserted.
  2335.  
  2336.  
  2337.         ---------------------------------------------------------------------
  2338.         /Worksheet Insert Row
  2339.         ---------------------------------------------------------------------
  2340.         Function  Insert one or more blank rows.
  2341.  
  2342.         Remarks   This command inserts  one or more blank rows  at the current
  2343.                   cell pointer  position.   The current row  and all  the rows
  2344.                   below  will be shifted down to make room for the blank rows.
  2345.                   Relative  references  in  formulas will  be  updated  by the
  2346.                   change; absolute references will remain unchanged.  You will
  2347.                   be asked how  many blank rows you  want to insert.   Use the
  2348.                   arrow keys  to highlight the  number of rows that  should be
  2349.                   inserted.   If you  highlight 3 rows,  then 3  rows will  be
  2350.                   inserted.
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.                                           32
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.         ---------------------------------------------------------------------
  2381.         /Worksheet Del Column
  2382.         ---------------------------------------------------------------------
  2383.         Function  Delete one or more columns.
  2384.  
  2385.         Remarks   This command deletes one or more columns at the current cell
  2386.                   pointer  position.  The contents of the deleted columns will
  2387.                   be erased,  and all  of  the columns  to the  right will  be
  2388.                   shifted  left to  fill  in the  deleted  columns.   Relative
  2389.                   references  in formulas  will  be  updated  by  the  change;
  2390.                   absolute  references will remain  unchanged.  Use  the arrow
  2391.                   keys to highlight the columns that should be deleted.
  2392.  
  2393.         ---------------------------------------------------------------------
  2394.         /Worksheet Del Row
  2395.         ---------------------------------------------------------------------
  2396.         Function  Delete one or more rows.
  2397.  
  2398.         Remarks   This command  deletes one or  more rows at the  current cell
  2399.                   pointer position.  The contents  of the deleted rows will be
  2400.                   erased, and all of the rows below will be shifted up to fill
  2401.                   in the deleted  rows.  Relative references  in formulas will
  2402.                   be  updated by the  change; absolute references  will remain
  2403.                   unchanged.   Use the arrow  keys to highlight the  rows that
  2404.                   should be deleted.
  2405.  
  2406.         ---------------------------------------------------------------------
  2407.         /Worksheet Title
  2408.         ---------------------------------------------------------------------
  2409.         Function  Lock title rows and columns on the screen.
  2410.  
  2411.         Remarks   This command allows  you to lock (or hold)  rows and columns
  2412.                   on screen.   The  command acts  as a  toggle; invoking  it a
  2413.                   first time  turns the  title locking ON,  and invoking  it a
  2414.                   second time turns the title locking OFF.  With title locking
  2415.                   ON, the rows  above the current cell and  the columns to the
  2416.                   left of the current cell will be locked on screen.  The cell
  2417.                   pointer  will  not  move  into  the  locked  title  rows and
  2418.                   columns.  
  2419.  
  2420.         ---------------------------------------------------------------------
  2421.         /Worksheet Protect
  2422.         ---------------------------------------------------------------------
  2423.         Function  Enable or disable cell protection.
  2424.  
  2425.         Remarks   This  command  enables  or disables  the  protection  in the
  2426.                   Worksheet.  When  the Worksheet protection is  disabled, any
  2427.                   cell in the Worksheet may be modified, regardless of whether
  2428.                   the cell is protected or not.  When the Worksheet protection
  2429.                   is enabled, those cells  which are protected using  the cell
  2430.                   or range protection commands may not be modified  or altered
  2431.                   in any way.
  2432.  
  2433.         Options   Enable    Turns Worksheet protection on.
  2434.                   Disable   Turns Worksheet protection off.
  2435.  
  2436.  
  2437.  
  2438.  
  2439.                                           33
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.         ---------------------------------------------------------------------
  2447.         /Worksheet Zero
  2448.         ---------------------------------------------------------------------
  2449.         Function  Suppress the display of zeros.
  2450.  
  2451.         Remarks   This command allows you to suppress the display of all cells
  2452.                   which have a value of zero.
  2453.  
  2454.         Options   No   Don't suppress the display of zeros.
  2455.                   Yes  Suppress the display of zeros.
  2456.  
  2457.  
  2458.         ---------------------------------------------------------------------
  2459.         /Worksheet Calc
  2460.         ---------------------------------------------------------------------
  2461.         Function  Select recalculation options.
  2462.  
  2463.         Remarks   This command allows  you to select whether  InstaCalc should
  2464.                   recalculate the Worksheet after any cell is changed, or only
  2465.                   when the <F9> Recalc key is pressed.
  2466.  
  2467.         Options   Auto      Recalculate  the  cells which  need  recalculation
  2468.                             after any cell is changed.
  2469.  
  2470.                   Manual    Only  recalculate  the  worksheet  when  the  <F9>
  2471.                             Recalc  key is pressed.   Since  the recalculation
  2472.                             state  of  the  worksheet   will  usually  not  be
  2473.                             current, InstaCalc will write the word CALC in the
  2474.                             upper  right corner when the worksheet needs to be
  2475.                             recalculated.
  2476.  
  2477.                   Limited   Allows  you to limit  recalculation to a  range of
  2478.                             cells.   You will be  asked to define a  range (or
  2479.                             range)  of  cells  which  should  be  recalculated
  2480.                             instead of the entire worksheet.
  2481.  
  2482.                   Full      Restores recalculation to the entire worksheet.
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.                                           34
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.         ---------------------------------------------------------------------
  2513.         /File Retrieve
  2514.         ---------------------------------------------------------------------
  2515.         Function  Retrieves a worksheet from disk.
  2516.  
  2517.         Remarks   This command  retrieves a file  from disk into memory.   You
  2518.                   will be asked for the name of  the file to retrieve.  If you
  2519.                   press the  <Enter> key  without a  file name, the  InstaCalc
  2520.                   file manager will  appear, from which you may  select a file
  2521.                   with the cursor keys.   When a file  is read in, all  of the
  2522.                   data,  settings, and current  face and pointer  position are
  2523.                   loaded.
  2524.  
  2525.                   All current data will be cleared from memory when a new file
  2526.                   is  loaded.   InstaCalc checks to  see if you  have made any
  2527.                   changes to the  current file,  and will ask  if you want  to
  2528.                   save your data before loading the new file.
  2529.  
  2530.                   If the file was saved  with a password (encrypted), then you
  2531.                   will be asked  to enter the password  to unlock it.   If you
  2532.                   provide the wrong password, an error message will appear and
  2533.                   the file will not be retrieved into memory.
  2534.  
  2535.  
  2536.  
  2537.         ---------------------------------------------------------------------
  2538.         /File Save
  2539.         ---------------------------------------------------------------------
  2540.         Function  Saves the worksheet in memory to disk.
  2541.  
  2542.         Remarks   This command asks you  for a name to save  the Worksheet as,
  2543.                   then  proceeds to  save  the  file to  disk  in the  current
  2544.                   directory.  Pressing the  <Enter> key  without  a file  name
  2545.                   brings up the InstaCalc File  Manager, from which a file may
  2546.                   be selected with the cursor keys.  In addition  to data, all
  2547.                   of the Worksheet settings are saved to disk.
  2548.  
  2549.                   If the file  name you provide already exists  in the current
  2550.                   directory,  InstaCalc will  ask  you  whether  you  want  to
  2551.                   overwrite the existing file, or  back it up.  If you  select
  2552.                   Backup, the extension  of the existing  file's name will  be
  2553.                   changed from .INS to .BAK, and the current file will receive
  2554.                   the .INS extension.
  2555.  
  2556.                   InstaCalc also allows you to password protect (encrypt) your
  2557.                   file as  it is saved to disk.  You  will be asked to enter a
  2558.                   password to lock the file with.  This allows you to generate
  2559.                   files  which others  cannot  access  unless  they  know  the
  2560.                   password.
  2561.  
  2562.                   To  password protect  a file,  you must  enter the  letter P
  2563.                   following the  file name.  For example,  if you want to save
  2564.                   the current  file to the  name SECRET.INS, and you  want the
  2565.                   file to be password protected, you should enter:
  2566.  
  2567.                   SECRET P
  2568.  
  2569.  
  2570.  
  2571.                                           35
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.                   when you are  asked to enter the  name of the file  to save.
  2579.                   You would then be asked to enter a password.  After you have
  2580.                   entered the  password, you  will be asked  to type  the same
  2581.                   password in to verify that it was typed in correctly.
  2582.  
  2583.                   IMPORTANT -  Make sure you  do not forget your  password for
  2584.                   the file.  There is no way to recover the file if you forget
  2585.                   your password.
  2586.  
  2587.  
  2588.         ---------------------------------------------------------------------
  2589.         /File Directory
  2590.         ---------------------------------------------------------------------
  2591.         Function  Changes the current directory.
  2592.  
  2593.         Remarks   This command allows  you to change the current  directory or
  2594.                   drive.  You may enter either a full DOS pathname or simply a
  2595.                   subdirectory name to  be appended to the  current directory.
  2596.                   Pressing the <Enter>  key without a file name  brings up the
  2597.                   InstaCalc  File Manager,  from  which  a  directory  may  be
  2598.                   selected with the cursor keys.
  2599.  
  2600.         ---------------------------------------------------------------------
  2601.         /File Files
  2602.         ---------------------------------------------------------------------
  2603.         Function  Brings up the InstaCalc File Manager.
  2604.  
  2605.         Remarks   This command presents a File Manager, and allows "point-and-
  2606.                   shoot" operations on files, directories, and drives.
  2607.  
  2608.                   You will be asked to  enter a mask.  A mask is  simply a way
  2609.                   of telling InstaCalc which  files you want to  be displayed.
  2610.                   You may use the asterisk *  in the mask.  The asterisk  will
  2611.                   match any set of characters.  For  example, if you enter the
  2612.                   mask *.BAK, then the file manager will list every file which
  2613.                   ends with .BAK.  If you enter the mask Q*.*, then all of the
  2614.                   files  beginning  with  the  letter  Q  will  be  displayed.
  2615.                   Pressing <Enter>  will use the Mask *.*,  which will display
  2616.                   all of the files in the current directory.
  2617.  
  2618.         Options   <Up> <Down>    Using these  keys, you  can highlight  files,
  2619.                                  drives,  or  directories (depending  on  what
  2620.                                  area of the file  manager the highlighted bar
  2621.                                  is  in).  Operations can then be performed on
  2622.                                  the selected file, drive, or directory.
  2623.  
  2624.                   <Left> <Right> Allows  you  to  change   files,  drives,  or
  2625.                                  directories.      If,    for   example,   the
  2626.                                  highlighted bar is in the "Directory" section
  2627.                                  of the file manager, and you wanted to change
  2628.                                  drives,  hitting the left arrow key will move
  2629.                                  the  bar into  the "Drive"  section.   A  new
  2630.                                  drive may be selected by using the down arrow
  2631.                                  and Enter keys.
  2632.  
  2633.                   <Enter>        Causes  the   highlighted  file,   drive,  or
  2634.                                  directory  to be selected.
  2635.  
  2636.  
  2637.                                           36
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.                   <F1>           Causes a  Help screen to appear,  giving help
  2645.                                  on how to use the File Manager.
  2646.  
  2647.                   <F2>           Causes the  currently highlighted file  to be
  2648.                                  loaded.
  2649.  
  2650.                   <F3>           Causes the  highlighted file to  be combined.
  2651.                                  For more details see /File Combine.
  2652.  
  2653.                   <F4>           Causes the  highlighted file to  be imported.
  2654.                                  For more details see /File Import.
  2655.  
  2656.                   <F5>           Allows  you  to  edit  the  contents  of  the
  2657.                                  highlighted text  file.   Although the  macro
  2658.                                  editor will be  used, you are not  limited to
  2659.                                  editing  just macro (.MAC) files.  See /Macro
  2660.                                  Edit  for  details on  the  options available
  2661.                                  when editing.
  2662.  
  2663.                   <F6>           Causes  the  highlighted  text   file  to  be
  2664.                                  printed.   This  function  is  primarily  for
  2665.                                  printing out application programs.
  2666.  
  2667.                   <F7>           Causes  the highlighted file to run, if it is
  2668.                                  a program or batch file, and if enough memory
  2669.                                  is available.
  2670.  
  2671.                   <F8>           Allows  you to  rename the  highlighted file.
  2672.                                  You will be prompted for a new name.
  2673.  
  2674.                   <F9>           Copies the highlighted file to another drive,
  2675.                                  directory, or name.  You will be prompted for
  2676.                                  a new drive, directory, or name.
  2677.  
  2678.                   <F10>          Deletes the highlighted file.  InstaCalc will
  2679.                                  request confirmation before actually deleting
  2680.                                  the file.
  2681.  
  2682.                   <Ctrl><F2>     Scans  the   current  drive  to   update  the
  2683.                                  directory tree.
  2684.  
  2685.                   The  File  Manager  also simplifies  the  tasks  of changing
  2686.                   drives and  directories.   To change  to another  directory,
  2687.                   simply   press  the  <Left>   key  to  highlight   the  word
  2688.                   DIRECTORIES at the top of the screen,  then use the <Up> and
  2689.                   <Down> keys to highlight the  name of the directory you want
  2690.                   to  change to.   Once  the  name is  highlighted, press  the
  2691.                   <Enter> key  and InstaCalc will change to that directory and
  2692.                   list the files in that directory.
  2693.  
  2694.                   Changing drives  is just as  easy.  Simply press  the <Left>
  2695.                   key  until the  word DRV is  highlighted at  the top  of the
  2696.                   screen,  then press  the letter  of  the drive  you want  to
  2697.                   change to.   For example, if you want to change to drive A:,
  2698.                   then just press A.
  2699.  
  2700.  
  2701.  
  2702.  
  2703.                                           37
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.         ---------------------------------------------------------------------
  2711.         /File Combine
  2712.         ---------------------------------------------------------------------
  2713.         Function  Combines  all  or part  of  a  worksheet  on disk  with  the
  2714.                   worksheet currently in memory.
  2715.  
  2716.         Remarks   This command allows  you to combine several  InstaCalc files
  2717.                   into  a single file.  You will be  asked for the name of the
  2718.                   file  to be  read in,  and the file  will be  loaded without
  2719.                   clearing the Worksheet.  Pressing the <Enter>  key without a
  2720.                   file name brings up the InstaCalc File Manager, from which a
  2721.                   file may  be selected  with the cursor  keys.   The original
  2722.                   cells will  remain unchanged  unless the  new file  contains
  2723.                   data in the  same cells.  Blank  cells in the new  file will
  2724.                   not  affect  existing  cells  in  the  Worksheet.    Current
  2725.                   Worksheet settings will be retained.
  2726.  
  2727.         Options   Copy      The data in the new file will be combined into the
  2728.                             current  Worksheet.   If  the  new  file  and  the
  2729.                             current  Worksheet contain  any data  in the  same
  2730.                             cell, the data in the new file will be copied over
  2731.                             the data already in memory.
  2732.  
  2733.                   Add       The data in the new file will be combined into the
  2734.                             current  Worksheet.   If  the  new  file  and  the
  2735.                             current Worksheet contain values in the same cell,
  2736.                             the value  in the  new file will  be added  to the
  2737.                             value  already in memory.   Since this  command is
  2738.                             primarily  for  consolidating  data  from  several
  2739.                             worksheets, cells  containing  text  will  not  be
  2740.                             combined into the current file.
  2741.  
  2742.                   Subtract  The data in the new file will be combined into the
  2743.                             current  Worksheet.   If  the  new  file  and  the
  2744.                             current Worksheet contain values in the same cell,
  2745.                             the value in the new  file will be subtracted from
  2746.                             the value already  in memory.  Since  this command
  2747.                             is primarily for  consolidating data from  several
  2748.                             worksheets, cells  containing  text  will  not  be
  2749.                             combined into the current file.
  2750.  
  2751.                   Each of these options has two suboptions which determine how
  2752.                   much of the new file should be combined in.
  2753.  
  2754.                   All  Combines in  the entire  file.  Every  cell in  the new
  2755.                        file  will be combined  into the  same location  in the
  2756.                        current  Worksheet.    For example,  cell  X23  will be
  2757.                        combined into cell X23 in the current worksheet.
  2758.  
  2759.                   Part Combines in  a range from the  file.  The cells  in the
  2760.                        range  you combine in will be  combined starting at the
  2761.                        location of the cell pointer.  For example, if the cell
  2762.                        pointer is  in cell  D5, and you  combine in  the range
  2763.                        A1..D12 from  the other file,  then cell A1 in  the new
  2764.                        file will  be  combined into  cell  D5 in  the  current
  2765.                        worksheet.
  2766.  
  2767.  
  2768.  
  2769.                                           38
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.                        You will be asked for the range in the other file which
  2777.                        you want to combine in.
  2778.  
  2779.                        If the  range you want to combine in was named with the
  2780.                        /Range Name command, you  can press the <F3>  Range key
  2781.                        to bring up a menu of all the named ranges in the other
  2782.                        file.
  2783.  
  2784.  
  2785.  
  2786.         ---------------------------------------------------------------------
  2787.         /File Xtract
  2788.         ---------------------------------------------------------------------
  2789.         Function  Saves part of the worksheet in memory to disk.
  2790.  
  2791.         Remarks   This  command is similar  to the /File  Save command, except
  2792.                   that  it saves  a  range  of cells  rather  than the  entire
  2793.                   Worksheet.  You  will be asked for  the name of the  file to
  2794.                   save  to,  and  to  define  the  range  of  cells  to  save.
  2795.                   InstaCalc saves all of the Worksheet settings with the saved
  2796.                   range.
  2797.  
  2798.  
  2799.         ---------------------------------------------------------------------
  2800.         /File Import
  2801.         ---------------------------------------------------------------------
  2802.         Function  Imports data from 1-2-3, dBase, DIF, or ASCII files.
  2803.  
  2804.         Remarks   This command  imports data  files from  other programs  into
  2805.                   InstaCalc.  You  will be asked for  the name of the  file to
  2806.                   import.  Pressing <Enter> without  a file name brings up the
  2807.                   InstaCalc File Manager,  from which a  file may be  selected
  2808.                   with the cursor keys.
  2809.  
  2810.         Options   1-2-3     Imports a  Lotus 1-2-3  (tm) file.   If  InstaCalc
  2811.                             encounters  a formula  which  uses an  unsupported
  2812.                             @function, it will  read the value of  the formula
  2813.                             rather than the formula itself.
  2814.  
  2815.                   dBase     Imports  selected records from  a dBase (tm) file.
  2816.                             Fields will  appear as  columns, and  records will
  2817.                             appear as rows.   You do not have  to import every
  2818.                             field of the data base.  Before the import begins,
  2819.                             InstaCalc  will  step through  the  names of  each
  2820.                             field and  ask if you  want to import  that field.
  2821.                             You may select:
  2822.  
  2823.                             Yes  Import this field.
  2824.                             No   Don't import this field.
  2825.                             All  Import this and all the remaining fields.
  2826.  
  2827.                             You will then  be asked to enter a  criteria.  The
  2828.                             criteria is a string  which tells InstaCalc  which
  2829.                             records you want  to import.  The  criteria can be
  2830.                             any valid  InstaCalc formula which returns  a TRUE
  2831.                             or FALSE value.  The criteria may treat any of the
  2832.                             dBase field names as  if they were range names  in
  2833.  
  2834.  
  2835.                                           39
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.                             the formula.    The criteria  can use  any of  the
  2843.                             comparison  operators  (=,<>,<=, etc)  or  logical
  2844.                             operators (&,|, or ~).
  2845.  
  2846.                             If you press <Enter> without entering  a criteria,
  2847.                             then InstaCalc  will import every record  from the
  2848.                             dBase  file (if  there is  enough  memory to  hold
  2849.                             them).
  2850.  
  2851.                             Some example criteria are:
  2852.  
  2853.                             STATE="Utah"
  2854.                             All records where the STATE field contains Utah
  2855.  
  2856.                             (STATE="Utah")&(LASTNAME="Smith")
  2857.                             All  records where  the STATE field  contains Utah
  2858.                             and the LASTNAME field contains Smith
  2859.  
  2860.                             (STATE="Utah")&~(LASTNAME="Smith")
  2861.                             All records  where the  STATE field  contains Utah
  2862.                             but the LASTNAME field does not contain Smith
  2863.  
  2864.                             (STATE="Utah")|(STATE="California")
  2865.                             All records where the STATE field contains Utah or
  2866.                             California
  2867.  
  2868.                             QUANTITY>100
  2869.                             All records  where the QUANTITY  field contains  a
  2870.                             value greater than 100
  2871.  
  2872.                             At any time  while entering the criteria,  you may
  2873.                             press <F3> to  bring up a menu of  the field names
  2874.                             which are available.
  2875.  
  2876.                             The  only limitation to  the criteria is  that you
  2877.                             may only  use the  names of  fields which  you are
  2878.                             actually importing.  For example, if you select No
  2879.                             when asked if  InstaCalc should  import the  field
  2880.                             called STATE, then you  may not use STATE in  your
  2881.                             criteria.
  2882.  
  2883.                   DIF       Imports a  Data  Interchange  Format  (DIF)  file.
  2884.                             Many  databases and  spreadsheets  are capable  of
  2885.                             creating DIF files.
  2886.  
  2887.                   ASCII     Imports a comma delimited or space delimited ASCII
  2888.                             file.    Each  line  in  the  ASCII  file  will be
  2889.                             imported into a row  in the worksheet.  Each  line
  2890.                             may contain multiple fields (cells) of data,  each
  2891.                             of which must  be separated by  a comma or  space.
  2892.                             If a string which contains spaces or commas  is to
  2893.                             be imported into  a single cell, then  that string
  2894.                             must be surrounded by quotation marks "like this".
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.                                           40
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.         ---------------------------------------------------------------------
  2909.         /File Export
  2910.         ---------------------------------------------------------------------
  2911.         Function  Exports part  of the  worksheet to a  1-2-3, dBase,  DIF, or
  2912.                   ASCII file.
  2913.  
  2914.         Remarks   This command exports a range of cells to  the file format of
  2915.                   another program.   You will be  asked for the file  name you
  2916.                   want to export to, and to define the range of cells you want
  2917.                   to export.   If the file name you  provide exists, InstaCalc
  2918.                   will ask you  if you want to Overwrite the  existing file or
  2919.                   Cancel the operation.
  2920.  
  2921.         Options   1-2-3     This option allows you to export the range to a 1-
  2922.                             2-3 R1  (WKS) or R2  (WK1) file.  You  must select
  2923.                             from a menu  which version you want to  export to.
  2924.                             Any InstaCalc formula which  contains an @function
  2925.                             which  1-2-3 doesn't support will be exported as a
  2926.                             value rather than a formula.
  2927.  
  2928.                   dBase     This option  allows you to  export the range  to a
  2929.                             dBase II, III, or III+ file.  You must select from
  2930.                             a menu which version you want to export to.
  2931.  
  2932.                             InstaCalc  will use the  top row of  the range you
  2933.                             define  as  the field  names  for the  data  to be
  2934.                             exported.  The widths of  each column will be used
  2935.                             as the field width in the dBase file.
  2936.  
  2937.                             Before the  actual export is  performed, InstaCalc
  2938.                             will step through each field name and ask you what
  2939.                             type of field it  should be.  The  available field
  2940.                             types are:
  2941.  
  2942.                             Character The values in the field are text.
  2943.  
  2944.                             Number    The values in the field are numbers.
  2945.  
  2946.                             Logical   The  values  in  the field  are  TRUE or
  2947.                                       FALSE.
  2948.  
  2949.                             Date      The values in the field are dates.  This
  2950.                                       option is available only when you export
  2951.                                       to dBase III or III+.
  2952.  
  2953.                   DIF       The  file  will  be  exported  in  the  DIF  (Data
  2954.                             Interchange Format) format.
  2955.  
  2956.                   ASCII     The file  will be  exported to  a comma  delimited
  2957.                             ASCII file.   Each row of  the range will be  on a
  2958.                             separate line of the ASCII file, and the  value of
  2959.                             each cell in the row will be separated by a comma.
  2960.                             Text items will be surrounded by quotes ".
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.                                           41
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.         ---------------------------------------------------------------------
  2975.         /File Link
  2976.         ---------------------------------------------------------------------
  2977.         Function  Link to a .INS file on disk.
  2978.  
  2979.         Remarks   This  command  allows  you  to  link  multiple  spreadsheets
  2980.                   together.   You are  not limited to  linking a  single cell.
  2981.                   You may link to an entire range within another spreadsheet.
  2982.  
  2983.                   The current cell will contain the  link.  If you change  the
  2984.                   value of the cell in the other spreadsheet, this "link cell"
  2985.                   will change accordingly.
  2986.  
  2987.                   If you create  a link to a  range of cells in  another file,
  2988.                   the link cell will take on the same value as the cell in the
  2989.                   upper left corner of the range in the other file.  The cells
  2990.                   to the right  of and below  the link cell  will take on  the
  2991.                   values of corresponding cells from the other file.
  2992.  
  2993.                   If a change is made to any  of the linked cells in the other
  2994.                   worksheet,  the current worksheet will be updated to reflect
  2995.                   those changes.
  2996.  
  2997.                   Each  time you  retrieve a  file  which is  linked to  other
  2998.                   files, you will  be asked if you  want to update all  of the
  2999.                   links.  If  you select Yes then InstaCalc  will update every
  3000.                   link in the  file.  If you select No then InstaCalc will not
  3001.                   update any of the links in the file.
  3002.  
  3003.                   If none of the files which were linked to have been changed,
  3004.                   then selecting No can greatly  speed up the retrieval of the
  3005.                   file.
  3006.  
  3007.                   If your file has a large number of links in it, but only one
  3008.                   of the links needs to be updated, you should  select No, and
  3009.                   then use the /File Link  Update command to update the single
  3010.                   link.
  3011.  
  3012.         Options   Create    Create or edit a  link to another worksheet.   You
  3013.                             will be asked for two items.
  3014.  
  3015.                             - The name of the file  you want to link to.   The
  3016.                             file must already be in existence.
  3017.  
  3018.                             - The name of the range you want to link to.
  3019.  
  3020.                   Delete    Delete an existing  link to another worksheet.   A
  3021.                             menu  of all existing  links will appear,  and you
  3022.                             may pick the link you want to delete.
  3023.  
  3024.                   List      List all of the links in the current Worksheet.
  3025.  
  3026.                   Edit      Allows you  to edit  an existing  link to  another
  3027.                             file.  A menu of all the links in the file will be
  3028.                             displayed,  from which you may select the link you
  3029.                             want to edit.  You may then change either the file
  3030.                             to link to, or the range in the file, or both.
  3031.  
  3032.  
  3033.                                           42
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.                   Update    Allows you  to update a  link to another file.   A
  3041.                             menu  of  all  the  links  in  the  file  will  be
  3042.                             displayed, and you may select the link you wish to
  3043.                             be updated.
  3044.  
  3045.  
  3046.  
  3047.         ---------------------------------------------------------------------
  3048.         /Print Block
  3049.         ---------------------------------------------------------------------
  3050.         Function  Defines the range of cells to print.
  3051.  
  3052.         Remarks   This command  allows you to  define a range  to print.   You
  3053.                   will be asked to define the range  to be printed.  The range
  3054.                   will not actually be printed  until the /Print Go command is
  3055.                   issued.
  3056.  
  3057.  
  3058.  
  3059.         ---------------------------------------------------------------------
  3060.         /Print Rows
  3061.         ---------------------------------------------------------------------
  3062.         Function  Defines rows to print above the print range on each page.
  3063.  
  3064.         Remarks   This command  allows you  to define one  or more  rows which
  3065.                   will be  printed above your data on each page.  This command
  3066.                   is useful when you  are printing a range which has more rows
  3067.                   than will  fit on a single sheet of  paper; it allows you to
  3068.                   have a row of header data printed at the top of each page.
  3069.  
  3070.  
  3071.         ---------------------------------------------------------------------
  3072.         /Print Columns
  3073.         ---------------------------------------------------------------------
  3074.         Function  Defines  columns to print to the  left of the print range on
  3075.                   each page.
  3076.  
  3077.         Remarks   This command allows you to  define one or more columns which
  3078.                   will be printed to the left of your data on each page.  This
  3079.                   command is  useful when you  are printing a range  which has
  3080.                   more columns than  will fit on  a single sheet of  paper; it
  3081.                   allows you to have a column of titles printed at the left of
  3082.                   each page.
  3083.  
  3084.  
  3085.  
  3086.         ---------------------------------------------------------------------
  3087.         /Print Undefine
  3088.         ---------------------------------------------------------------------
  3089.         Function  Undefines the current Print, Rows, and Columns ranges.
  3090.  
  3091.         Remarks   Since InstaCalc remembers  which range you printed  last, it
  3092.                   is  sometimes necessary to  reset the /Print  Block setting.
  3093.                   When doing so,  it is usually easiest to  clear the previous
  3094.                   block setting entirely by using the /Print Undefine command.
  3095.  
  3096.         Options   Block     Clears the previous /Print Block setting.
  3097.  
  3098.  
  3099.                                           43
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.                   Rows      Clears the previous /Print Rows setting.
  3107.  
  3108.                   Columns   Clears the previous /Print Columns setting.
  3109.  
  3110.                   All       Clears all previous /Print range settings.
  3111.  
  3112.  
  3113.         ---------------------------------------------------------------------
  3114.         /Print Align
  3115.         ---------------------------------------------------------------------
  3116.         Function  Align the paper in the printer.
  3117.  
  3118.         Remarks   This command sets  the current position of  the printhead as
  3119.                   the top of the page.  This is important; the printer and the
  3120.                   program will be  keeping individual track of the  top of the
  3121.                   page.  It  is good  habit to precede  the /Print Go  command
  3122.                   with the /Print Align command.
  3123.  
  3124.  
  3125.         ---------------------------------------------------------------------
  3126.         /Print Line
  3127.         ---------------------------------------------------------------------
  3128.         Function  Advance the printer by one line.
  3129.  
  3130.         Remarks   This command sends  a line feed to the  printer, causing the
  3131.                   printer to  print a blank line.   Since the  printer and the
  3132.                   program  are  keeping  separate  track  of  the  pagination,
  3133.                   sending a line feed through  the printer control panel  will
  3134.                   cause  the  program's  pagination  to  be  off  by  a  line,
  3135.                   resulting  in unwanted  offsets  in  your  printout.    More
  3136.                   importantly, though,  it is  usually easier  to advance  the
  3137.                   paper  one  line  using  this  command  than  by  using  the
  3138.                   printer's control panel.
  3139.  
  3140.  
  3141.  
  3142.         ---------------------------------------------------------------------
  3143.         /Print Page
  3144.         ---------------------------------------------------------------------
  3145.         Function  Advance the printer to the top of the next page.
  3146.  
  3147.         Remarks   This command sends  a form feed to the  printer, causing the
  3148.                   paper to advance one page.  This is usually done at  the end
  3149.                   of a printout,  since printing will stop with  the last line
  3150.                   actually  printed.    Thus,  to remove  the  page  from  the
  3151.                   printer, simply select the /Print  Page command.  Since  the
  3152.                   printer and the  program are keeping  separate track of  the
  3153.                   pagination,  sending a form feed through the printer control
  3154.                   panel  will  cause  the  program's  pagination  to  be  off,
  3155.                   resulting in unwanted offsets in your printout.
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.                                           44
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.         ---------------------------------------------------------------------
  3173.         /Print Options
  3174.         ---------------------------------------------------------------------
  3175.         Function  Set options for your printout.
  3176.  
  3177.         Remarks   This command allows complete control over the format  of the
  3178.                   printout.   There are  numerous options, all  visible from a
  3179.                   single pop-up  screen.  You  may select an option  either by
  3180.                   pressing  the first letter of the option name (highlighted),
  3181.                   or  by using  the arrow  keys  to highlight  the option  and
  3182.                   pressing the <Enter> key.
  3183.  
  3184.         Options   Left Margin    Lets you  set the  number of  characters from
  3185.                                  left edge of the page to begin printing.
  3186.  
  3187.                   Right Margin   Lets  you set  the number of  characters from
  3188.                                  left  edge of  the page  that  you want  your
  3189.                                  right margin set  to.  The right  margin must
  3190.                                  be greater than  the left margin or  an error
  3191.                                  will occur.
  3192.  
  3193.                   Top Margin     Lets you  set the  number of  blank lines  to
  3194.                                  print at  the top of  each page.  If  you set
  3195.                                  this  option  to  3,  InstaCalc  will   begin
  3196.                                  printing on the fourth line of the page.
  3197.  
  3198.                   Bottom Margin  Lets you  set the  number of  blank lines  to
  3199.                                  print  at the bottom of each page.  InstaCalc
  3200.                                  will automatically advance  the paper to  the
  3201.                                  next page before it resumes printing.
  3202.  
  3203.                   Page Length    Lets  you set the number of physical lines on
  3204.                                  a page.   On an 8 1/2" x 11" paper at 6 lines
  3205.                                  per inch, there are 66 lines.  InstaCalc must
  3206.                                  have  this information  so  that it  can keep
  3207.                                  track of where it is on the page.
  3208.  
  3209.                   Header         Allows  you  to enter  a  header,  which will
  3210.                                  appear at the top  of every page.  There  are
  3211.                                  two  special characters that  you can  use in
  3212.                                  headers:
  3213.  
  3214.                                  @    will be replaced by the current date.
  3215.                                  #    will  be  replaced by  the  current page
  3216.                                       number.
  3217.  
  3218.                                  The header  may start  with one  of the  text
  3219.                                  justify characters to determine where on  the
  3220.                                  line  the  header  will  be  placed.    These
  3221.                                  characters are
  3222.  
  3223.                                  '    left justify the header
  3224.                                  "    right justify the header
  3225.                                  ^    center the header
  3226.  
  3227.                                  If  no header is  defined, then a  blank line
  3228.                                  will be printed in its place.
  3229.  
  3230.  
  3231.                                           45
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.                   Footer         Allows  you to  enter  a  footer, which  will
  3239.                                  appear  at the bottom of every page.  Special
  3240.                                  characters are  available as  in the  header.
  3241.                                  If  no footer is  defined, then a  blank line
  3242.                                  will be printed in its place.
  3243.  
  3244.                   Mode           Lets  you decide  what  type of  printout you
  3245.                                  want.
  3246.  
  3247.                                  Display   The  printout  will appear  as  the
  3248.                                            file does  on-screen; that  is, the
  3249.                                            values calculated  by the  formulas
  3250.                                            will be printed.
  3251.  
  3252.                                  Formula   The  formulas  themselves  will  be
  3253.                                            printed, one  cell per line.   This
  3254.                                            is  useful  for  documentation  and
  3255.                                            error-handling.
  3256.  
  3257.                   Output         Lets you decide where to send your output.
  3258.  
  3259.                                  Printer   All  output  will  be sent  to  the
  3260.                                            printer.
  3261.  
  3262.                                  File      All output  will be sent to a file.
  3263.                                            You  will be asked  for the name of
  3264.                                            the  file  you  want  to  send  the
  3265.                                            printout to.
  3266.  
  3267.                   Number (page)  Displays the  current page number,  which you
  3268.                                  can set or reset.
  3269.  
  3270.                   Device         Allows  you to select the printer and port to
  3271.                                  send the printout to.
  3272.  
  3273.                   Setup string   The setup string is  a sequence of characters
  3274.                                  which will be sent to your printer before the
  3275.                                  range  is printed.   It is generally  used to
  3276.                                  send  control sequences  to  your printer  to
  3277.                                  turn  on special  features such  as condensed
  3278.                                  printing.  Most printer codes contain control
  3279.                                  characters which  can't be  entered directly.
  3280.                                  To enter  control characters, simply  enter a
  3281.                                  backslash character \ followed by the 3 digit
  3282.                                  ASCII  code  (in  decimal)  for  the  control
  3283.                                  character.
  3284.  
  3285.                                  For  example,  since  the  ASCII  value   (in
  3286.                                  decimal) for  the <Esc> character  is 27, you
  3287.                                  would use a setup string of  \027E to send an
  3288.                                  <Esc>E to the printer (this sequence  selects
  3289.                                  emphasized print on an EPSON printer).
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.                                           46
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.         ---------------------------------------------------------------------
  3305.         /Print Go
  3306.         ---------------------------------------------------------------------
  3307.         Function  Send your data to the printer (or print file).
  3308.  
  3309.         Remarks   This command begins the process of printing.  InstaCalc will
  3310.                   not begin printing until it receives this command.
  3311.  
  3312.                   If the range  you are trying to print is wider than the left
  3313.                   and right margins  allow, InstaCalc will ask if  you want if
  3314.                   to break the  page into smaller pieces for  printing.  These
  3315.                   pieces can then be put back together into a larger sheet.
  3316.  
  3317.                   If you  don't want  the printout to  be broken  into smaller
  3318.                   pieces, then  you must go  back into the /Print  Options and
  3319.                   reset  your left  and right  margins  to allow  for a  wider
  3320.                   printout.
  3321.  
  3322.                   If you want  to abort the  print job after  it has  started,
  3323.                   simply press  the <Esc>  key (printers  with built-in  print
  3324.                   buffers will  continue to print  until the print  buffer has
  3325.                   been emptied).
  3326.  
  3327.  
  3328.  
  3329.         ---------------------------------------------------------------------
  3330.         /Graph
  3331.         ---------------------------------------------------------------------
  3332.         Function  Define, view, and print graphs.
  3333.  
  3334.         Remarks   This command allows you to  define the ranges to be graphed,
  3335.                   set options for the graph, and then view or print the graph.
  3336.  
  3337.         Options   Type      Select  the type of graph.  The following types of
  3338.                             graphs are available.
  3339.  
  3340.                             Bar            Bar chart.
  3341.                             Stacked Bar    Stacked bar chart.
  3342.                             Line           Line chart.
  3343.                             Pie            Pie chart using data in range A.
  3344.                             X-Y            X-Y chart.   Range  X must  contain
  3345.                                            the  X  axis  coordinates  for  the
  3346.                                            values in ranges A through F.
  3347.                             Area           Area chart.
  3348.                             Hi-Lo          Hi-Lo chart.  Range A contains  the
  3349.                                            high values,  and range  B contains
  3350.                                            the low values.
  3351.  
  3352.                   A..F      Allows you  to select  up to 6  ranges of  data to
  3353.                             graph.  With the exception of pie charts and hi-lo
  3354.                             graphs, all of these ranges can be displayed  on a
  3355.                             graph at the same time.
  3356.  
  3357.                             Simply define  the range of  cells you want  to be
  3358.                             graphed.  You will also be asked to enter a legend
  3359.                             which  describes  the  data in  the  range.   This
  3360.                             legend   will  be   printed   on   the  graph   to
  3361.  
  3362.  
  3363.                                           47
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.                             differentiate between the different graph ranges.
  3371.  
  3372.                   X Axis    Allows you to  select a range of  cells containing
  3373.                             the labels which will be used on a graph's X axis.
  3374.                             You  will be prompted for the range containing the
  3375.                             labels.   For most graph  types the cells  in this
  3376.                             range  may contain text, values, or both.  For X-Y
  3377.                             graphs,  this range must contain the x axis values
  3378.                             which  correspond to  the graph ranges  (A through
  3379.                             F).   Defining  this range  is  mandatory for  X-Y
  3380.                             graphs.
  3381.  
  3382.                   Reset     Resets  the ranges of  the graph, allowing  you to
  3383.                             undefine data ranges to be charted.
  3384.  
  3385.                   View      Displays the defined  graph on your screen.   Once
  3386.                             the  graph  is displayed,  pressing  any  key will
  3387.                             return you to the worksheet.
  3388.  
  3389.                   Print     Prints  the defined  graph to  the  printer.   The
  3390.                             current printer type and port is displayed next to
  3391.                             the print  command.   To change  this printer  (or
  3392.                             port), use the /Print Options Device command.
  3393.  
  3394.                   Options   Allows you to set various options for the graph.
  3395.  
  3396.                             Title     Places a title at the top of the current
  3397.                                       graph.   You will be asked to enter some
  3398.                                       text.
  3399.  
  3400.                             Labels    Allows you to label the  X and Y axes of
  3401.                                       the graph.  The X  label will be  placed
  3402.                                       horizontally under the x axis, and the Y
  3403.                                       label will  be placed vertically  to the
  3404.                                       left  of the y axis.   You will be asked
  3405.                                       to enter some text for  both the X and Y
  3406.                                       axis labels.
  3407.  
  3408.  
  3409.                             X axis    Allows  you  to  select the  format  and
  3410.                                       scaling of the  x axis.  This  option is
  3411.                                       useful only for X-Y graphs.  There are 2
  3412.                                       types of scaling.
  3413.  
  3414.                                       Auto      InstaCalc   will  select   the
  3415.                                                 minimum and maximum  values to
  3416.                                                 use for the x axis.
  3417.  
  3418.                                       Manual    InstaCalc will ask you for the
  3419.                                                 minimum and maximum  values to
  3420.                                                 use for the x axis.  InstaCalc
  3421.                                                 may  adjust  these   values  a
  3422.                                                 little   bit   if   necessary.
  3423.                                                 Manual scaling is  useful when
  3424.                                                 you  want  to   print  several
  3425.                                                 different  graphs  using   the
  3426.                                                 same scale.
  3427.  
  3428.  
  3429.                                           48
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.                                       You  will also  be asked  to select  the
  3437.                                       format to  use to  display values  along
  3438.                                       the  x  axis.    All of  the  formatting
  3439.                                       options  from the  /Cell Format  command
  3440.                                       (such  as  fixed,  currency, scientific,
  3441.                                       etc) are available.
  3442.  
  3443.                             Y axis    Allows  you  to  select  the format  and
  3444.                                       scaling of the  y axis.  This  option is
  3445.                                       used  for  all  graph types  except  pie
  3446.                                       charts.  There are 2 types of scaling.
  3447.  
  3448.                                       Auto      InstaCalc   will  select   the
  3449.                                                 minimum and maximum  values to
  3450.                                                 use for the y axis.
  3451.  
  3452.                                       Manual    InstaCalc will ask you for the
  3453.                                                 minimum and maximum  values to
  3454.                                                 use for the y axis.  InstaCalc
  3455.                                                 may  adjust  these   values  a
  3456.                                                 little   bit   if   necessary.
  3457.                                                 Manual scaling is  useful when
  3458.                                                 you  want  to   print  several
  3459.                                                 different  graphs   using  the
  3460.                                                 same scale.
  3461.  
  3462.                                  You will also  be asked to select  the format
  3463.                                  to  use to display  values along the  y axis.
  3464.                                  All of the formatting  options from the /Cell
  3465.                                  Format  command  (such  as  fixed,  currency,
  3466.                                  scientific, etc) are available.
  3467.  
  3468.                        Spacing   Allows  you  to  choose  the  spacing of  the
  3469.                                  values along the  x axis of the graph.   This
  3470.                                  option is useful when graph range X  contains
  3471.                                  a large number  of values to place  along the
  3472.                                  axis.  You will be asked to enter a numerical
  3473.                                  value.  If you enter 1, then every value from
  3474.                                  graph  range X  will be  displayed.   If  you
  3475.                                  enter  2, then every  second value from graph
  3476.                                  range X will be displayed; 3 means that every
  3477.                                  third value will be displayed, and so on.
  3478.  
  3479.                                  For  example, if the  x axis values  are Jan,
  3480.                                  Feb, Mar, April, and May,  choosing a spacing
  3481.                                  of 1  causes each  of the  values to  appear.
  3482.                                  Choosing  2 will cause only Jan, Mar, and May
  3483.                                  to appear.
  3484.  
  3485.                        PieFormat Allows you to select how to format the values
  3486.                                  displayed  around the  pie  chart.   Although
  3487.                                  each  slice of the  pie will be  labeled with
  3488.                                  the  contents of the  X graph range,  you may
  3489.                                  also display a value for  the slice.  You may
  3490.                                  select from the following options.
  3491.  
  3492.                                  %         The percent  of the  whole will  be
  3493.  
  3494.  
  3495.                                           49
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.                                            displayed.    For example,  if  the
  3503.                                            slice is  one quarter  of the  pie,
  3504.                                            25% will be displayed.
  3505.  
  3506.                                  $         The value of the  slice (from graph
  3507.                                            range  A) will  be  displayed as  a
  3508.                                            currency value.
  3509.  
  3510.                                  Value     The actual value of the slice (from
  3511.                                            graph range A) will be displayed.
  3512.  
  3513.                                  None      No value will be displayed.
  3514.  
  3515.                        AltTic    Determines  whether the  values placed  along
  3516.                                  the  x axis should be staggered.  This allows
  3517.                                  a  few more  values (or  longer  ones) to  be
  3518.                                  placed  along the x axis and yet still remain
  3519.                                  readable.
  3520.  
  3521.                                  Yes  Stagger the x axis values.
  3522.  
  3523.                                  No   Don't stagger the x axis values.
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533.  
  3534.  
  3535.  
  3536.  
  3537.  
  3538.  
  3539.  
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.                                           50
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.         ---------------------------------------------------------------------
  3569.         /Data Sort
  3570.         ---------------------------------------------------------------------
  3571.         Function  Sort a range of data.
  3572.  
  3573.         Remarks   This command allows you to sort  rows or columns of data, in
  3574.                   either ascending or  descending order.  A window  of options
  3575.                   will  appear on  the screen.   To  change an  option, either
  3576.                   press  the key  corresponding  to the  first  letter of  the
  3577.                   option name (D for Direction for example), or use the cursor
  3578.                   keys to move  the lightbar to the option you  want to change
  3579.                   and press the <Enter> key.
  3580.  
  3581.         Options   Direction      Determines how your data is to be sorted.
  3582.                                  Row       Rows will be sorted.
  3583.                                  Column    Columns will be sorted.
  3584.  
  3585.                   Block          You  will be  asked to  define  the range  to
  3586.                                  sort.  This  range should include all  of the
  3587.                                  rows or columns which you want rearranged.
  3588.  
  3589.                   1st - 9th Key  The  Key options  indicate the  fields to  be
  3590.                                  used in determining the sorted (new) order of
  3591.                                  the data.   You will be prompted  to indicate
  3592.                                  the column or  row that contains the  data by
  3593.                                  which  the  sort  is to  be  performed.   The
  3594.                                  column  or row  may  be  indicated either  by
  3595.                                  pointing  or by  typing  an appropriate  cell
  3596.                                  address.
  3597.  
  3598.                                  You  will  also  be  asked whether  the  sort
  3599.                                  should be in  Ascending or Descending  order.
  3600.                                  Sorting the  data in  ascending order  causes
  3601.                                  numerical data to be sorted from the smallest
  3602.                                  number to  the largest  number (1,  2, 3,  4,
  3603.                                  etc.), while  textual  data  will  be  sorted
  3604.                                  alphabetically  (A, B,  C, D, etc).   Sorting
  3605.                                  the data in descending order has the opposite
  3606.                                  effect; numbers  will be arranged  from large
  3607.                                  to small  (5,4,3,2,1, etc), and  textual data
  3608.                                  will be sorted in  reverse alphabetical order
  3609.                                  (Z, Y, X, W, etc).
  3610.  
  3611.                   Reset          This command resets all of the sort settings.
  3612.                                  This function is  necessary when you need  to
  3613.                                  undefine the sort keys.
  3614.  
  3615.                   Start          Pressing the  Start key  in the  options menu
  3616.                                  will  cause  the  sort  to  be  performed  as
  3617.                                  indicated in the menu.
  3618.  
  3619.  
  3620.  
  3621.  
  3622.  
  3623.  
  3624.  
  3625.  
  3626.  
  3627.                                           51
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.         ---------------------------------------------------------------------
  3635.         /Data Fill
  3636.         ---------------------------------------------------------------------
  3637.         Function  Fill a range of cells with data.
  3638.  
  3639.         Remarks   This command allows  you to fill a specified  range of cells
  3640.                   with  text or numbers.   You will  be asked  for an equation
  3641.                   which is used to determine the values placed in each  of the
  3642.                   cells to be filled.
  3643.  
  3644.                   A variable named # is initialized to 0 and is incremented by
  3645.                   1  for each cell in  the range.  The  # variable may be used
  3646.                   anywhere in  the equation  to provide  an endless  number of
  3647.                   sequences.  The  equation entered with  this command may  be
  3648.                   any  legal formula  containing numbers,  operators, cell  or
  3649.                   range references, functions, or the # variable.
  3650.  
  3651.                   Cell  references  in  the formula  are  treated  as relative
  3652.                   unless  you  specifically  make them  absolute  using  the $
  3653.                   symbol.
  3654.  
  3655.         Examples  #
  3656.                   generates a sequence starting with 0 and incrementing by 1.
  3657.  
  3658.                   1000+#
  3659.                   generates  a sequence starting with 1000 and incrementing by
  3660.                   1.
  3661.  
  3662.                   5+#*3
  3663.                   generates a sequence starting with 5 and incrementing by 3.
  3664.  
  3665.                   @TODAY+#
  3666.                   generates  a  sequence  of date  numbers  starting  with the
  3667.                   current date.
  3668.  
  3669.  
  3670.  
  3671.         ---------------------------------------------------------------------
  3672.         /Data Value
  3673.         ---------------------------------------------------------------------
  3674.         Function  Convert formulas in a range to their values.
  3675.  
  3676.         Remarks   This command converts  formulas in a range to  their values.
  3677.                   You will  be asked to  define a  range of cells  to convert.
  3678.                   Since formulas require more memory than values, this command
  3679.                   helps conserve  memory when  you just need  a set  of values
  3680.                   rather than the formulas.
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.                                           52
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.         ---------------------------------------------------------------------
  3701.         /Data Modify
  3702.         ---------------------------------------------------------------------
  3703.         Function  Modify all numerical values in a range.
  3704.  
  3705.         Remarks   This command  allows you to  modify all  of the values  in a
  3706.                   range.  You may specify that each cell  in a specified range
  3707.                   be multiplied by 5, or  subtracted from the average value of
  3708.                   the range, or  that they be modified in any of the ways that
  3709.                   a legal formula  may provide.  You  will be asked  to define
  3710.                   the range  to modify, as well  as an equation to  modify the
  3711.                   cells with.
  3712.  
  3713.                   This command provides a variable named # which is set to the
  3714.                   value of each  cell in the range.  This variable may be used
  3715.                   just like a number or cell reference in the formula.
  3716.  
  3717.         Example   Below are examples of equations  and the way they modify the
  3718.                   range.
  3719.  
  3720.                   2*#       doubles all of the values in the range.
  3721.                   #^2       squares all of the values in the range.
  3722.                   #+3       adds 3 to all of the values in the range.
  3723.                   @ABS(#)   makes all of the values in the range positive.
  3724.  
  3725.  
  3726.  
  3727.  
  3728.         ---------------------------------------------------------------------
  3729.         /Data Base
  3730.         ---------------------------------------------------------------------
  3731.         Function  Define and use a range of cells as a database.
  3732.  
  3733.         Remarks   This command allows you  to define and use a range  of cells
  3734.                   as a database.  Each column in  the range will be treated as
  3735.                   a database field, and each row in the range will be  treated
  3736.                   as a record  in the database.  You may have  up to 23 fields
  3737.                   (columns)  in your  database.   If the  range you  define is
  3738.                   wider than  23 columns,  all columns past  the 23rd  will be
  3739.                   ignored.
  3740.  
  3741.                   The  top cell in each  column must contain  the name of that
  3742.                   field.
  3743.  
  3744.                   In addition,  InstaCalc will  use the  format of  the header
  3745.                   cell (whether Currency, Date, etc) for all data entered into
  3746.                   that field.   This means  it is not necessary  to pre-format
  3747.                   entire  columns of  blank cells  before  using the  database
  3748.                   form.
  3749.  
  3750.         Options   Range     You will be asked to  define the range of cells to
  3751.                             use for your  database.  Each column in  the range
  3752.                             will be treated  as a database field, and each row
  3753.                             in the  range will be  treated as a record  in the
  3754.                             database.
  3755.  
  3756.                   View      This  command  displays  the defined  range  in  a
  3757.  
  3758.  
  3759.                                           53
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.                             database  form  view,  using the  information  you
  3767.                             provided in the cell at the top of each column.
  3768.  
  3769.                             The following commands are  available in the  form
  3770.                             view:
  3771.  
  3772.                             Next      Move to the next record in the database.
  3773.  
  3774.                             Prior     Move  to   the  prior   record  in   the
  3775.                                       database.
  3776.  
  3777.                             Begin     Move  to   the  first   record  in   the
  3778.                                       database.
  3779.  
  3780.                             End       Move to the last record in the database.
  3781.  
  3782.                             Modify    Modify the  currently displayed  record.
  3783.                                       When modifying a record, the fields will
  3784.                                       be accessed in the order of  the columns
  3785.                                       in the worksheet.
  3786.  
  3787.                                       You may use <Enter>  to accept the value
  3788.                                       of each  field  and  move  to  the  next
  3789.                                       field, or you may use <Up> and <Down> to
  3790.                                       move  back  and  forth  between  fields.
  3791.                                       When  you  are  finished  modifying  the
  3792.                                       record, simply press <F10> to return  to
  3793.                                       the database menu.
  3794.  
  3795.                             Add       Allows you  to add  new  records to  the
  3796.                                       database.    Add  is similar  to  Modify
  3797.                                       except that you may press <F9> to accept
  3798.                                       the  entered  data  and  move  to a  new
  3799.                                       (blank) record.   Pressing <F10> accepts
  3800.                                       the entered  record and  returns you  to
  3801.                                       the database menu.
  3802.  
  3803.                             Find      Find a record in the database.  You will
  3804.                                       be  asked  to  enter  criteria  for  the
  3805.                                       record(s) to search  for.  This criteria
  3806.                                       can   use   field    names,   comparison
  3807.                                       operators   (=,<>,<=,    etc),   logical
  3808.                                       operators   (&,|,   or    ~)   or   even
  3809.                                       @functions.  For example, if you want to
  3810.                                       find all records where the  last name is
  3811.                                       Smith  and  the  state is  NY,  then you
  3812.                                       might use the following criteria:
  3813.  
  3814.                                       (LNAME="Smith")&(STATE="NY")
  3815.  
  3816.                             Del       Delete the  currently displayed  record.
  3817.                                       You  will  be   asked  to  confirm  this
  3818.                                       selection.
  3819.  
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  
  3825.                                           54
  3826.  
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.         ---------------------------------------------------------------------
  3833.         /Data Goalseek
  3834.         ---------------------------------------------------------------------
  3835.         Function  Find  the value  which causes  a worksheet  model to  give a
  3836.                   particular result.
  3837.  
  3838.         Remarks   The  /Data Goalseek command  allows you to  easily determine
  3839.                   what value must  be entered into  a cell to  make a  formula
  3840.                   give  a  desired result.    The  formula  does not  have  to
  3841.                   directly reference the cell, and the model may be as complex
  3842.                   as desired.   The more complex  the worksheet, however,  the
  3843.                   longer the goalseeking will take.
  3844.  
  3845.                   To  perform  the  goalseeking,  select  the  /Data  Goalseek
  3846.                   command, then:
  3847.  
  3848.                   1. Select the formula you  want to achieve a particular goal
  3849.                   value.
  3850.                   2. Enter the goal value you want that formula to achieve.
  3851.                   3. Select the cell which InstaCalc should adjust to  achieve
  3852.                   that goal.
  3853.  
  3854.         Options   After InstaCalc finds  a solution, it displays  the solution
  3855.                   and provides the following options:
  3856.  
  3857.                   Use       Enter  the new value into the cell which InstaCalc
  3858.                             was adjusting.
  3859.  
  3860.                   Ignore    Restore  the  original  value to  the  cell  which
  3861.                             InstaCalc was adjusting.
  3862.  
  3863.         Example   You have a complex financial worksheet  model where cell Z73
  3864.                   contains  a formula which determines profit,  and cell C5 is
  3865.                   the number of  items which need to  be sold to achieve  that
  3866.                   profit.   To  determine  how  many items  you  must sell  to
  3867.                   achieve $10,000 profit:
  3868.  
  3869.                   1. Select /Data Goalseek.
  3870.                   2. Mark cell Z73 as the goal cell.
  3871.                   3. Enter 10000 as the goal value.
  3872.                   4. Mark cell C5 as the cell to change.
  3873.  
  3874.                   InstaCalc will then seek the  value for cell C5 which causes
  3875.                   cell Z73  to  return  10000.   InstaCalc  will  display  the
  3876.                   solution and will ask if you want to use the new value which
  3877.                   it just found, or if you want to ignore the new value.
  3878.  
  3879.  
  3880.  
  3881.         ---------------------------------------------------------------------
  3882.         /Data matriX
  3883.         ---------------------------------------------------------------------
  3884.         Function  Perform matrix operations on ranges.
  3885.  
  3886.         Remarks   The  /Data matriX command  allows you to  add, multiply, and
  3887.                   transpose ranges of cells.
  3888.  
  3889.  
  3890.  
  3891.                                           55
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.         Options   Multiply  Multiplies  two  ranges.   You  will  be  asked to
  3899.                             define the two  ranges to multiply together.   The
  3900.                             number of columns in  the first range must be  the
  3901.                             same as  the number of  rows in the  second range.
  3902.                             You will also be  asked to define an  output range
  3903.                             where the result will be placed.
  3904.  
  3905.                   Add       Adds two ranges  together.  You  will be asked  to
  3906.                             define the  two ranges to  add together.   The two
  3907.                             ranges must each have the same number  of rows and
  3908.                             columns.   You will  also  be asked  to define  an
  3909.                             output range where the result will be placed.
  3910.  
  3911.                   Transpose Transposes (swaps columns with rows) a range.  You
  3912.                             will be asked to define the range to transpose, as
  3913.                             well as an output range to place the result.
  3914.  
  3915.  
  3916.  
  3917.  
  3918.         ---------------------------------------------------------------------
  3919.         /Data Query
  3920.         ---------------------------------------------------------------------
  3921.         Function  Extract or delete records from a worksheet based database.
  3922.  
  3923.         Remarks   The  /Data  Query  command  allows  you  to  extract  (copy)
  3924.                   selected  database records  (or parts  of  records) from  an
  3925.                   input  range  to  an  output range,  or  to  delete selected
  3926.                   records from an input range.
  3927.  
  3928.         Options   Input          The input range  consists of a single  record
  3929.                                  per row,  where the  first row  in the  range
  3930.                                  contains the field names for the database.
  3931.  
  3932.                   Output         The output range  is used as the  location to
  3933.                                  place the  records extracted  from the  input
  3934.                                  range.  If  you only define the  output range
  3935.                                  as  one  row,  InstaCalc  will  automatically
  3936.                                  extend the range to row 4096.
  3937.  
  3938.                   Criteria       The  criteria   is  a   string  which   tells
  3939.                                  InstaCalc which records you are interested in
  3940.                                  extracting or deleting.   The criteria can be
  3941.                                  any valid InstaCalc  formula which returns  a
  3942.                                  TRUE  or FALSE value.  The criteria may treat
  3943.                                  any  of the database  field names as  if they
  3944.                                  were  range  names  in  the  formula.     The
  3945.                                  criteria  can  use  any  of  the   comparison
  3946.                                  operators (=,<>,<=, etc) or logical operators
  3947.                                  (&,|, or ~).
  3948.  
  3949.                                  Some example criteria are:
  3950.  
  3951.                                  STATE="Utah"
  3952.                                  All  records where  the STATE  field contains
  3953.                                  Utah
  3954.  
  3955.  
  3956.  
  3957.                                           56
  3958.  
  3959.  
  3960.  
  3961.  
  3962.  
  3963.  
  3964.                                  (STATE="Utah")&(LASTNAME="Smith")
  3965.                                  All records  where the  STATE field  contains
  3966.                                  Utah and the LASTNAME field contains Smith
  3967.  
  3968.                                  (STATE="Utah")&~(LASTNAME="Smith")
  3969.                                  All records  where the  STATE field  contains
  3970.                                  Utah but the LASTNAME field does not  contain
  3971.                                  Smith
  3972.  
  3973.                                  (STATE="Utah")|(STATE="California")
  3974.                                  All records  where the  STATE field  contains
  3975.                                  Utah or California
  3976.  
  3977.                                  QUANTITY>100
  3978.                                  All records where the QUANTITY field contains
  3979.                                  a value greater than 100
  3980.  
  3981.                   Extract        Allows you to extract (copy) selected records
  3982.                                  (and fields)  from  the Input  range  to  the
  3983.                                  Output  range.   The top  row  of the  Output
  3984.                                  range must contain the names of the  specific
  3985.                                  fields you  want extracted.  This  allows you
  3986.                                  to  extract   only  those   fields  you   are
  3987.                                  interested in.
  3988.  
  3989.                                  The Output range is erased before the records
  3990.                                  are  extracted.   If more  records match  the
  3991.                                  criteria than  will fit in  the Output range,
  3992.                                  an error message will appear.
  3993.  
  3994.                   Delete         Allows you to delete records  which match the
  3995.                                  Criteria from the  input range.  You  will be
  3996.                                  asked to confirm this selection with a Yes or
  3997.                                  No answer.
  3998.  
  3999.  
  4000.  
  4001.  
  4002.  
  4003.         ---------------------------------------------------------------------
  4004.         /Data Dist
  4005.         ---------------------------------------------------------------------
  4006.         Function  Generates a frequency distribution of a range of cells.
  4007.  
  4008.         Remarks   This command generates  a frequency distribution of  a range
  4009.                   of  cells.   You  simply  define the  range  of cells  which
  4010.                   contain the  values you want  a distribution of, and  a "bin
  4011.                   range",  which  is  simply a  column  of  increasing values.
  4012.                   InstaCalc will look  at the first value in  the "bin range",
  4013.                   count how  many cells in  the value  range are less  than or
  4014.                   equal to that value, and insert that count  into the cell to
  4015.                   the right of the first bin.
  4016.  
  4017.                   InstaCalc then looks at the second value in the "bin range",
  4018.                   counts how  many cells in the  value range are less  than or
  4019.                   equal to  that value but  are greater than the  previous bin
  4020.                   value, and inserts that count into the cell to  the right of
  4021.  
  4022.  
  4023.                                           57
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.                   the second bin.  This continues through the last cell in the
  4031.                   "bin range".
  4032.  
  4033.                   Finally, InstaCalc counts  the number of cells  in the value
  4034.                   range  which are  greater than  the  last cell  in the  "bin
  4035.                   range", and places that count to  the right of the cell just
  4036.                   under the "bin range".
  4037.  
  4038.                   Summary
  4039.  
  4040.                   1. Define the range containing your values.
  4041.  
  4042.                   2. Define the column range  containing your bin values.  The
  4043.                   bin values must be in increasing order.
  4044.  
  4045.                   3.  InstaCalc will  determine how  many  cells in  the value
  4046.                   range fall in  each of  the "bins"  in the bin  range.   The
  4047.                   result for each  bin will be placed in the cell to the right
  4048.                   of each bin.
  4049.  
  4050.                   By  graphing  (as  a  bar   graph)  the  result  of  a  data
  4051.                   distribution,  you will obtain  a histogram of  the original
  4052.                   data.
  4053.  
  4054.  
  4055.  
  4056.  
  4057.         ---------------------------------------------------------------------
  4058.         /Data Audit
  4059.         ---------------------------------------------------------------------
  4060.         Function  Allows you to audit (error check) your worksheet.
  4061.  
  4062.         Remarks   This command  provides several  auditing capabilities  which
  4063.                   can assist  you  in finding  errors  which sneak  into  your
  4064.                   worksheets.
  4065.  
  4066.         Options   Trace     Allows you to  highlight all formulas  which refer
  4067.                             to a specific cell.  InstaCalc will enter a  trace
  4068.                             mode,  where  pressing  <Enter> on  any  cell will
  4069.                             highlight all formulas  which reference that cell.
  4070.                             All the  standard movement  keys are  available to
  4071.                             move  through the  worksheet  to find  highlighted
  4072.                             cells which  may not  be on the  screen.   To exit
  4073.                             from Trace mode, simply press <Esc>.
  4074.  
  4075.                   Map       Displays your worksheet in a compressed form where
  4076.                             each cell is  represented by one of  the following
  4077.                             characters:
  4078.  
  4079.                             +    Formula
  4080.                             #    Number
  4081.                             A    Text
  4082.                             ?    Error
  4083.  
  4084.                             This  allows  you  to   easily  view  the  overall
  4085.                             structure of  your worksheet.   The  map view  can
  4086.                             help  you  locate  errors which  may  normally  be
  4087.  
  4088.  
  4089.                                           58
  4090.  
  4091.  
  4092.  
  4093.  
  4094.  
  4095.  
  4096.                             difficult  to   spot,  such   as  a   number  cell
  4097.                             accidentally placed in a column of formulas.
  4098.  
  4099.                             You  may use  any  of the  movement  keys to  move
  4100.                             through  your worksheet, and  the contents  of the
  4101.                             current cell will be displayed on the command line
  4102.                             as usual.  You will  not be able to edit cells  or
  4103.                             access  the menu from this  view however.  To exit
  4104.                             from map mode, simply press the <Esc> key.
  4105.  
  4106.  
  4107.  
  4108.  
  4109.  
  4110.         ---------------------------------------------------------------------
  4111.         /Macro Edit
  4112.         ---------------------------------------------------------------------
  4113.         Function  Edit or create a macro.
  4114.  
  4115.         Remarks   This command allows you to edit or create a macro.  You will
  4116.                   be asked for  the name of a macro to edit.  Pressing <Enter>
  4117.                   without entering a macro name  will cause the InstaCalc File
  4118.                   Manager  to  appear on-screen;  the macro  name may  then be
  4119.                   chosen  from the File Manager.   Once a macro is chosen, the
  4120.                   InstaCalc  Macro Editor will display the macro and allow you
  4121.                   to edit  it.    The following  commands  are  available  for
  4122.                   editing the macro.
  4123.  
  4124.  
  4125.                   <Up> <Down>
  4126.                   <Left> <Right> The arrow keys move the cursor up or down one
  4127.                                  line, or left or right one character.
  4128.                   <Home>         This key moves the cursor to the beginning of
  4129.                                  the line.
  4130.                   <End>          This  key moves the cursor  to the end of the
  4131.                                  line.
  4132.                   <Ctrl><Right>  This key  moves the  cursor one  word to  the
  4133.                                  right.
  4134.                   <Ctrl><Left>   This key  moves the  cursor one  word to  the
  4135.                                  left.
  4136.  
  4137.                   <Ctrl><Home>   This  key moves the cursor to  the top of the
  4138.                                  file.
  4139.                   <Ctrl><End>    This  key moves the cursor  to the end of the
  4140.                                  file.
  4141.  
  4142.                   <PgDn>         This key moves the cursor down one screen.
  4143.                   <PgUp>         This key moves the cursor up one screen.
  4144.  
  4145.                   <BkSp>         This key deletes the character to the left of
  4146.                                  the   cursor   and   shifts   the   following
  4147.                                  characters in the line to the left to fill in
  4148.                                  the empty space.
  4149.  
  4150.                   <Ctrl><BkSp>   This key deletes the entire line.
  4151.  
  4152.                   <Del>          This key deletes the character underneath the
  4153.  
  4154.  
  4155.                                           59
  4156.  
  4157.  
  4158.  
  4159.  
  4160.  
  4161.  
  4162.                                  cursor and shifts the following characters in
  4163.                                  the  line to  the left to  fill in  the empty
  4164.                                  space.
  4165.  
  4166.                   <Ins>          This key toggles between insert and overwrite
  4167.                                  modes.  When you are in insert mode, typing a
  4168.                                  character will insert  the new character into
  4169.                                  the  line at the  point where the  cursor is.
  4170.                                  The character under  the cursor and  those to
  4171.                                  the  right of the  cursor are shifted  to the
  4172.                                  right  to make  room for  the  new character.
  4173.                                  When you  are  in overwrite  mode,  typing  a
  4174.                                  character  will replace  the character  under
  4175.                                  the  cursor with the new character.  When you
  4176.                                  are in  insert mode,  the cursor  will be  an
  4177.                                  underline.  In overwrite mode the cursor will
  4178.                                  be a solid block.
  4179.  
  4180.                   <F1> Help      This key causes a help screen to appear which
  4181.                                  lists all of the  commands available for text
  4182.                                  editing.
  4183.  
  4184.                   <F2> Mark      This  key  turns on  marking  at the  current
  4185.                                  line.  Moving the cursor  after pressing this
  4186.                                  key causes  lines between  that line and  the
  4187.                                  new  cursor   position  to   be  highlighted.
  4188.                                  Pressing  <F2> a  second time  will turn  off
  4189.                                  text marking.
  4190.  
  4191.                   <F3> Cut       Pressing this  key  with  marking  turned  on
  4192.                                  (<F2>)  causes the marked lines to be cut out
  4193.                                  of the file and placed  in a buffer.  You may
  4194.                                  then move to another location in the file and
  4195.                                  use the <F4> key to paste the lines back into
  4196.                                  the  file.   The buffer  will  only hold  one
  4197.                                  block of lines,  so if you cut  data a second
  4198.                                  time, the new data replaces the older data in
  4199.                                  the buffer.
  4200.  
  4201.                   <F4> Paste     This  keys causes the  contents of the buffer
  4202.                                  to  be pasted  into the  file  at the  cursor
  4203.                                  location.  This does not clear the buffer, so
  4204.                                  you  may paste the same buffer data into more
  4205.                                  than one location.
  4206.  
  4207.                   <F5> DelLine   This command deletes the  line the cursor  is
  4208.                                  on.
  4209.  
  4210.                   <F6> Search    This  command  allows  you  to  search  for a
  4211.                                  string in the  file.   You will  be asked  to
  4212.                                  enter  the  text  you  want  to  search  for.
  4213.                                  Simply enter the text, and the cursor will be
  4214.                                  moved to  the next  occurrence of that  text.
  4215.                                  The search  is case insensitive,  which means
  4216.                                  that hello will match hello, Hello, or HeLlO.
  4217.  
  4218.                   <F7> Save      This command  allows you to save  the current
  4219.  
  4220.  
  4221.                                           60
  4222.  
  4223.  
  4224.  
  4225.  
  4226.  
  4227.  
  4228.                                  file to disk without having to exit.
  4229.  
  4230.                   <F10> Exit     This  command  allows you  to  exit  from the
  4231.                                  editor.  If you have  made any changes to the
  4232.                                  file, you will be  asked if you want  to save
  4233.                                  it first.
  4234.  
  4235.  
  4236.  
  4237.         ---------------------------------------------------------------------
  4238.         /Macro List
  4239.         ---------------------------------------------------------------------
  4240.         Function  List all macros in the current directory.
  4241.  
  4242.         Remarks   This  command  lists  all  of  the  macros  in  the  current
  4243.                   directory.  The  command uses the InstaCalc File  Manager to
  4244.                   find files with the .MAC extension.
  4245.  
  4246.  
  4247.  
  4248.         ---------------------------------------------------------------------
  4249.         /Macro Run
  4250.         ---------------------------------------------------------------------
  4251.         Function  Run a macro or application program.
  4252.  
  4253.         Remarks   This command executes a macro (or application program).  You
  4254.                   will be  asked for the name of a macro to run.  Pressing the
  4255.                   <Enter> key without indicating a  macro to be run will cause
  4256.                   the  InstaCalc File  Manager to appear  on-screen.   You may
  4257.                   then choose the macro to be run using the File Manager.  For
  4258.                   information on creating macros and application programs, see
  4259.                   the section InstaCalc Applications.
  4260.  
  4261.  
  4262.  
  4263.         ---------------------------------------------------------------------
  4264.         /OpSys
  4265.         ---------------------------------------------------------------------
  4266.         Function  Temporarily returns to DOS.
  4267.  
  4268.         Remarks   This command allows  you to  temporarily return  to the  DOS
  4269.                   command line,  where you can  execute DOS commands  or other
  4270.                   programs.  When you are ready to return to InstaCalc, simply
  4271.                   type:
  4272.  
  4273.                   EXIT
  4274.  
  4275.                   at the DOS prompt.
  4276.  
  4277.                   IMPORTANT: Never run TSRs from the /OpSys command line (this
  4278.                   includes  the  DOS  PRINT  command).    Doing  so can  cause
  4279.                   unexpected problems to occur.
  4280.  
  4281.                   This command is not available when running as a pop up.
  4282.  
  4283.  
  4284.  
  4285.  
  4286.  
  4287.                                           61
  4288.  
  4289.  
  4290.  
  4291.  
  4292.  
  4293.  
  4294.         ---------------------------------------------------------------------
  4295.         /Quit
  4296.         ---------------------------------------------------------------------
  4297.         Function  Exits from InstaCalc.
  4298.  
  4299.         Remarks   This  command allows you to leave  InstaCalc entirely.  This
  4300.                   is  an intelligent exit  command; if you  have made changes,
  4301.                   InstaCalc will allow  you to save  the file before  exiting.
  4302.                   If no changes have been made, InstaCalc will simply exit the
  4303.                   program.
  4304.  
  4305.                   When running InstaCalc as a pop up  program, you will not be
  4306.                   asked to confirm exiting, because your data is not lost when
  4307.                   you quit.
  4308.  
  4309.         Options   If changes  have been made  to the Worksheet since  the last
  4310.                   time you saved it, you will be asked if you want to lose the
  4311.                   changes you made:
  4312.  
  4313.                   No   Returns  you  to  the  Worksheet  without  exiting  the
  4314.                        program.
  4315.  
  4316.                   Yes  Exits InstaCalc.   Any  changes made  to the  Worksheet
  4317.                        will be lost.
  4318.  
  4319.                   Save Saves the Worksheet, then exits the InstaCalc program.
  4320.  
  4321.  
  4322.  
  4323.  
  4324.  
  4325.  
  4326.  
  4327.  
  4328.  
  4329.  
  4330.  
  4331.  
  4332.  
  4333.  
  4334.  
  4335.  
  4336.  
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343.  
  4344.  
  4345.  
  4346.  
  4347.  
  4348.  
  4349.  
  4350.  
  4351.  
  4352.  
  4353.                                           62
  4354.  
  4355.  
  4356.  
  4357.  
  4358.  
  4359.  
  4360.         BUILT-IN FUNCTIONS
  4361.         InstaCalc  provides built-in  functions  which  you  can use  in  your
  4362.         formulas.  These  built-in functions each begin with  the character @,
  4363.         and are often called at functions.
  4364.  
  4365.         Most of these functions require one or more arguments.  An argument is
  4366.         a value  which the  function uses  as an  input to  provide an  output
  4367.         value.  An argument  may be a number, a text string,  a reference to a
  4368.         value  in another  cell,  or another  formula.   In  the  case of  the
  4369.         statistical functions, an argument may also be a range of cells.  If a
  4370.         function requires arguments, then they are enclosed in parentheses and
  4371.         immediately  follow  the name  of  the @function.   If  more  than one
  4372.         argument is  required, they must  be separated from each  other with a
  4373.         comma.
  4374.  
  4375.         A built-in function can  return either a numerical  or text value  and
  4376.         may be treated exactly like a number or text would be.
  4377.  
  4378.         Example   A cell contains the formula =2*@ABS(-3).
  4379.  
  4380.                   @ABS is  the name of  a built-in function which  returns the
  4381.                   absolute (positive) value of its argument.
  4382.  
  4383.                   -3 is the argument to the function.
  4384.  
  4385.                   The function returns a  value of 3, and is used  in the rest
  4386.                   of the  formula just like  the number 3.   The value  of the
  4387.                   entire formula is 6 (2 times the value of the @function).
  4388.  
  4389.         If  the value that a function returns  is an error, it will return the
  4390.         special value ERROR.  A formula which contains a function with a value
  4391.         of ERROR will also return ERROR as the value for the cell it is in.
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400.  
  4401.  
  4402.  
  4403.  
  4404.  
  4405.  
  4406.  
  4407.  
  4408.  
  4409.  
  4410.  
  4411.  
  4412.  
  4413.  
  4414.  
  4415.  
  4416.  
  4417.  
  4418.  
  4419.                                           63
  4420.  
  4421.  
  4422.  
  4423.  
  4424.  
  4425.  
  4426.         Mathematical   InstaCalc's  math  functions  allow  your  formulas  to
  4427.                        perform more sophisticated mathematical operations than
  4428.                        the operators alone can provide.
  4429.  
  4430.         Trigonometric  InstaCalc's trigonometry functions work the same way as
  4431.                        the mathematical  functions,  but  they  specialize  in
  4432.                        working with angles.
  4433.  
  4434.                        All angle  arguments and  results are  in radians.   To
  4435.                        convert  from  degrees  to  radians,  use  the  @RADIAN
  4436.                        function.  To convert from radians to degrees, use  the
  4437.                        @DEGREE function.
  4438.  
  4439.         Statistical    InstaCalc's statistical functions allow  you to analyze
  4440.                        and  summarize your  data in  a variety  of ways.   The
  4441.                        statistical  functions  calculate  and  return  various
  4442.                        statistics of a  list of values.  The  list may consist
  4443.                        of  numbers,  references  to  values  in  other  cells,
  4444.                        formulas, or  a range  of cells.   Ranges of  cells are
  4445.                        defined by using the cell names of two opposite corners
  4446.                        of the  range separated  by two  periods (for  example:
  4447.                        C14..D16).   Each individual item  in the list  must be
  4448.                        separated by a comma.
  4449.  
  4450.                        For example, suppose you want to sum 1.23, the value in
  4451.                        the cell A1, and the  values in each cell in  the range
  4452.                        defined by the cells C14 and D16.  You would simply use
  4453.                        the formula:
  4454.  
  4455.                        =@SUM(1.23,A1,C14..D16)
  4456.  
  4457.  
  4458.         Financial      InstaCalc's financial  functions allow  you to  perform
  4459.                        many powerful analyses.   Functions include formulas to
  4460.                        compute time value of  money calculations, depreciation
  4461.                        calculations, and growth rate calculations.
  4462.  
  4463.  
  4464.         Date/Time      InstaCalc  represents dates as the number of days since
  4465.                        December 31, 1899.  For example:
  4466.  
  4467.                        Jan 1, 1900 = 1
  4468.                        Jan 2, 1900 = 2
  4469.  
  4470.                        and so on.
  4471.  
  4472.                        Time is represented as a fraction of a day (starting at
  4473.                        midnight).  For example:
  4474.  
  4475.                        midnight = 0.0
  4476.                        noon = 0.5 because it is half way through the day,
  4477.                        6:00PM = 0.75 because it is 3/4 way through the day,
  4478.  
  4479.                        and so on.
  4480.  
  4481.                        This  allows dates  and times  to  be manipulated  with
  4482.                        ordinary  math operations.  For example, you could find
  4483.  
  4484.  
  4485.                                           64
  4486.  
  4487.  
  4488.  
  4489.  
  4490.  
  4491.  
  4492.                        out what   day, month,  and year  90 days from today is
  4493.                        by  simply adding  90 to  the  number which  represents
  4494.                        today's date. 
  4495.  
  4496.         Logical        The   InstaCalc   logical  functions   evaluate   their
  4497.                        arguments  to determine  one thing:  truth or  falsity.
  4498.                        Typically,  logical functions supply the value 1 as the
  4499.                        representative of truth, and 0 as the representative of
  4500.                        falsity.
  4501.  
  4502.         Macro          InstaCalc   provides  several   @functions  which   are
  4503.                        designed to be used in application programs.
  4504.  
  4505.         String         The  InstaCalc string  functions  allow you  to process
  4506.                        character  strings more  efficiently.   They are  often
  4507.                        used when importing data from other programs, printing,
  4508.                        and in macros that process strings.
  4509.  
  4510.         Data           InstaCalc's  data  functions  allow  your  formulas  to
  4511.                        access data  in a variety of ways,  from lookup tables,
  4512.                        to access to global and cell statistics.
  4513.  
  4514.  
  4515.  
  4516.         ---------------------------------------------------------------------
  4517.         @ABS                                                      Mathematical
  4518.         ---------------------------------------------------------------------
  4519.         Function  Returns the absolute (positive) value of a number.
  4520.  
  4521.         Syntax    @ABS(x)
  4522.                   where x is a number, a cell address, or a calculated value.
  4523.  
  4524.         Example   =@ABS(-212) = 212
  4525.                   =@ABS(25.3) = 25.3
  4526.                   =@ABS(B5) = 13, if the value of B5 is 13 or -13
  4527.                   =@ABS(2-3) = 1
  4528.  
  4529.  
  4530.         ---------------------------------------------------------------------
  4531.         @ACOS                                                     Trigonometry
  4532.         ---------------------------------------------------------------------
  4533.         Function  Returns the arc cosine of a number.
  4534.  
  4535.         Syntax    @ACOS(x)
  4536.                   where x is a number, a cell address, or a calculated value.
  4537.  
  4538.         Remarks   This  function returns  the angle  whose cosine  is x.   The
  4539.                   value of x  must be between -1  and 1, or @ACOS  will return
  4540.                   the value ERROR.  The value of the angle returned will be in
  4541.                   radians, and will  lie between 0  and pi.   If you want  the
  4542.                   result  to be  in  degrees instead,  then  use the  @DEGREES
  4543.                   function to convert the result.
  4544.  
  4545.         Example   =@ACOS(-0.990) = 3
  4546.                   =@ACOS(-1) = 3.14159
  4547.  
  4548.  
  4549.  
  4550.  
  4551.                                           65
  4552.  
  4553.  
  4554.  
  4555.  
  4556.  
  4557.  
  4558.         ---------------------------------------------------------------------
  4559.         @ASIN                                                     Trigonometry
  4560.         ---------------------------------------------------------------------
  4561.         Function  Returns the arc sine of a number.
  4562.  
  4563.         Syntax    @ASIN(x)
  4564.                   where x is a number, a cell address, or a calculated value. 
  4565.  
  4566.         Remarks   This  function returns the angle whose sine is x.  The value
  4567.                   of x must be between -1 to 1, or @ASIN will return the value
  4568.                   ERROR.  The value of the  angle returned will be in radians,
  4569.                   and will lie between pi/2 and -pi/2.  If you want the result
  4570.                   to be in degrees instead,  then use the @DEGREES function to
  4571.                   convert the result.
  4572.  
  4573.         Example   =@ASIN(0.1411) = 0.141572
  4574.                   =@ASIN(1) = 1.570796
  4575.                   =@DEGREES(@ASIN(1)) = 90
  4576.  
  4577.  
  4578.         ---------------------------------------------------------------------
  4579.         @ATAN                                                     Trigonometry
  4580.         ---------------------------------------------------------------------
  4581.         Function  Returns the arc tangent of a number.
  4582.  
  4583.         Syntax    @ATAN(x)
  4584.                   where x is a number, a cell address, or a calculated value.
  4585.  
  4586.         Remarks   This function  returns the  angle whose tangent  is x.   The
  4587.                   value of the  angle returned is in radians.  If you want the
  4588.                   result  to be  in  degrees instead,  then  use the  @DEGREES
  4589.                   function to convert the result.
  4590.  
  4591.                   Since the  @ATAN function finds  an angle based on  a single
  4592.                   value, the result is limited to quadrants I and IV (-pi/2 to
  4593.                   pi/2).  If you want to find a 4 quadrant angle, you must use
  4594.                   the @ATAN2 function.
  4595.  
  4596.         Example   =@ATAN(1) = 0.7854
  4597.                   =@DEGREES(@ATAN(1)) = 45
  4598.  
  4599.  
  4600.  
  4601.         ---------------------------------------------------------------------
  4602.         @ATAN2                                                    Trigonometry
  4603.         ---------------------------------------------------------------------
  4604.         Function  Returns the four quadrant arc tangent of y/x.
  4605.  
  4606.         Syntax    @ATAN2(x,y)
  4607.                   where x and  y are  numbers, cell  addresses, or  calculated
  4608.                   values.
  4609.  
  4610.         Remarks   This function returns the angle whose tangent is y/x.
  4611.  
  4612.                   The @ATAN2 function calculates the value of  the arc tangent
  4613.                   differently  than the  @ATAN  function.    Where  the  @ATAN
  4614.                   function takes as its argument the value of the tangent, the
  4615.  
  4616.  
  4617.                                           66
  4618.  
  4619.  
  4620.  
  4621.  
  4622.  
  4623.  
  4624.                   @ATAN2  function calculates  the value  of  the arc  tangent
  4625.                   using the x and y coordinates.   The result will be a full 4
  4626.                   quadrant angle, and will be between -pi and pi.
  4627.  
  4628.         Example   =@ATAN2(1,1) = 0.7854
  4629.                   =@DEGREE(@ATAN2(1,1)) = 45
  4630.                   =@DEGREE(@ATAN2(-1,-1)) = -135
  4631.  
  4632.  
  4633.         ---------------------------------------------------------------------
  4634.         @AVG                                                       Statistical
  4635.         ---------------------------------------------------------------------
  4636.         Function  Returns the average of a list of values.
  4637.  
  4638.         Syntax    @AVG(list)
  4639.                   where list is  a list  of values separated  by commas, or  a
  4640.                   range containing values, or some combination of the two.
  4641.  
  4642.         Remarks   This function calculates the average, or mean, of the values
  4643.                   in list.
  4644.  
  4645.                   The @AVG  function will completely  ignore all items  in the
  4646.                   list which are  text or blank.   This means  that if a  text
  4647.                   string is in a range in list, you do not have to worry about
  4648.                   it being used incorrectly in the calculation.
  4649.  
  4650.         Example   =@AVG(0,1,2,3,4,5,6,7,8,9) = 4.5
  4651.  
  4652.                   If the cells A1 through A10 contain the values listed above,
  4653.                   then
  4654.  
  4655.                   =@AVG(A1..A10) = 4.5
  4656.  
  4657.                   =@AVG(1234,6435,2567) = 3412
  4658.  
  4659.  
  4660.  
  4661.         ---------------------------------------------------------------------
  4662.         @CELL                                                             Data
  4663.         ---------------------------------------------------------------------
  4664.         Function  Returns information about a cell.
  4665.  
  4666.         Syntax    @CELL(attribute,range)
  4667.                   where  attribute  is  a  string  in  quotations  or  a  cell
  4668.                   reference; and range is a cell range, named or otherwise.
  4669.  
  4670.         Remarks   This  function returns information about the upper left cell
  4671.                   in range.   Although  the information is  only for  a single
  4672.                   cell,  range must be entered as a  range instead of a single
  4673.                   cell.    Attribute must  be  one of  the  following strings:
  4674.                   "address", "col", "contents", "format", "prefix", "protect",
  4675.                   "row",   or  "type".     @CELL  is  primarily   for  use  in
  4676.                   applications to  determine certain  characteristics about  a
  4677.                   cell.
  4678.  
  4679.  
  4680.  
  4681.  
  4682.  
  4683.                                           67
  4684.  
  4685.  
  4686.  
  4687.  
  4688.  
  4689.  
  4690.                   attribute      @CELL returns
  4691.                   "address"      the name of the cell (for example B5)
  4692.  
  4693.                   "col"          the column number of the cell (1 through 256)
  4694.  
  4695.                   "contents"     the contents of the cell
  4696.  
  4697.                   "format"       the formatting of the cell
  4698.                                  0 Default
  4699.                                  1 Fixed
  4700.                                  2 Currency
  4701.                                  3 Percent
  4702.                                  4 Scientific
  4703.                                  5 Hidden
  4704.                                  6 Text
  4705.                                  7 Fixed with commas
  4706.                                  8 Currency with commas
  4707.                                  9 Percent with commas
  4708.                                  10 dd-mmm-yy
  4709.                                  11 dd-mmm
  4710.                                  12 mmm-yy
  4711.                                  13 mm/dd/yy
  4712.                                  14 Month DD, YYYY
  4713.                                  15 HH:MM AM/PM
  4714.                                  16 HH:MM Military
  4715.                                  17 General
  4716.  
  4717.                   "prefix"       the justification character of the cell
  4718.                                  ' if left justified
  4719.                                  " if right justified
  4720.                                  ^ if centered
  4721.                                  blank if the cell doesn't contain text
  4722.  
  4723.                   "protect"      the protection status of the cell
  4724.                                  0 = Not protected, 1 = Protected
  4725.  
  4726.                   "row"          the row number of the cell (1 through 4096)
  4727.  
  4728.                   "type"         the type of data in the cell.
  4729.                                  BLANK,   FORMAT,   NUMBER,   TEXT,   FORMULA,
  4730.                                  TXTFORM, ERROR
  4731.  
  4732.                   "width"        the width of the column the cell is in.
  4733.  
  4734.  
  4735.         ---------------------------------------------------------------------
  4736.         @CHANGED                                                         Macro
  4737.         ---------------------------------------------------------------------
  4738.         Function  Returns the save status of the Worksheet.
  4739.  
  4740.         Syntax    @CHANGED
  4741.  
  4742.         Remarks   This function  returns a  value of 1  (TRUE) if  any changes
  4743.                   have been made to the Worksheet since it was last saved, and
  4744.                   0 (FALSE) if no changes have been made.
  4745.  
  4746.                   This  function is useful in applications to easily determine
  4747.  
  4748.  
  4749.                                           68
  4750.  
  4751.  
  4752.  
  4753.  
  4754.  
  4755.  
  4756.                   whether  the application needs  to save the  current file or
  4757.                   not.
  4758.  
  4759.         Example   #IF @changed
  4760.                     '/fsMYFILE<Enter>
  4761.                   #ENDIF
  4762.  
  4763.                   These  3 lines in an  application program cause InstaCalc to
  4764.                   test whether  any changes have  been made to  the Worksheet,
  4765.                   and do a /File Save if they have.
  4766.  
  4767.  
  4768.  
  4769.         ---------------------------------------------------------------------
  4770.         @CHAR                                                           String
  4771.         ---------------------------------------------------------------------
  4772.         Function  Returns a character, based on its ASCII value.
  4773.  
  4774.         Syntax    @CHAR(x)
  4775.                   where x is a number, a cell address, or a calculated value.
  4776.  
  4777.         Remarks   This function returns  the ASCII character for  the value x.
  4778.                   The value of x must lie in the range 1 to 255.
  4779.  
  4780.         Example   =@CHAR(42) = *
  4781.                   =@CHAR(55) = 7
  4782.                   =@CHAR(80) = P
  4783.                   =@CHAR(113) = q
  4784.  
  4785.  
  4786.         ---------------------------------------------------------------------
  4787.         @CHOOSE                                                           Data
  4788.         ---------------------------------------------------------------------
  4789.         Function  Choose an item from a list.
  4790.  
  4791.         Syntax    @CHOOSE(x,y1,y2,y3...yn)
  4792.                   where x is an offset value, and y1...yn is the list of items
  4793.                   to choose from.
  4794.  
  4795.         Remarks   This function performs a simple lookup based on the value of
  4796.                   x.  If x has a value of 1, then @CHOOSE will return y1; if x
  4797.                   has a value  of 2, then @CHOOSE  will return y2, and  so on.
  4798.                   The items in the list can be numeric, text, or both.
  4799.  
  4800.                   If x is less  than 1 or greater than the number  of items in
  4801.                   the list, then @CHOOSE will return the value ERROR.
  4802.  
  4803.         Example   If A1 contains the value 3, then
  4804.  
  4805.                   @CHOOSE(A1,"Sun","Mon","Tue","Wed","Thu","Fri","Sat")=Tue
  4806.  
  4807.                   and
  4808.  
  4809.                   =@CHOOSE(A1,23,"Item 2",17) = 17
  4810.  
  4811.                   =@CHOOSE(4,"Item 1","Item 2","Item 3") = ERROR
  4812.  
  4813.  
  4814.  
  4815.                                           69
  4816.  
  4817.  
  4818.  
  4819.  
  4820.  
  4821.  
  4822.         ---------------------------------------------------------------------
  4823.         @CINT                                                        Financial
  4824.         ---------------------------------------------------------------------
  4825.         Function  Returns the principal and interest after compounding.
  4826.  
  4827.         Syntax    @CINT(principal,int,n,q)
  4828.                   where  principal, int, n, and q are numbers, cell addresses,
  4829.                   or calculated values.
  4830.  
  4831.         Remarks   This  function returns  the total  amount  of principal  and
  4832.                   interest accumulated  after compounding.   principal is  the
  4833.                   starting principal amount, int  is the rate of interest  per
  4834.                   period, n  is the number of periods, and  q is the number of
  4835.                   times per period that interest is compounded.
  4836.  
  4837.  
  4838.  
  4839.         ---------------------------------------------------------------------
  4840.         @CNAME                                                            Data
  4841.         ---------------------------------------------------------------------
  4842.         Function  Returns the name of a cell.
  4843.  
  4844.         Syntax    @CNAME(col,row)
  4845.                   where col and row are numbers, cell addresses, or calculated
  4846.                   values.
  4847.  
  4848.         Remarks   This  functions returns  the name  of  a cell  based on  the
  4849.                   column  and  row number  of  the  cell.   This  function  is
  4850.                   especially  useful  in  application  program commands  which
  4851.                   require the name of a cell.
  4852.  
  4853.         Example   =@CNAME(1,1,1) = A1
  4854.                   =@CNAME(28,2,3) = AB2
  4855.  
  4856.  
  4857.         ---------------------------------------------------------------------
  4858.         @CODE                                                           String
  4859.         ---------------------------------------------------------------------
  4860.         Function  Returns the ASCII value of a character.
  4861.  
  4862.         Syntax    @CODE(string)
  4863.                   where string is a string in quotations, or a cell address.
  4864.  
  4865.         Remarks   This function returns the ASCII value of the first character
  4866.                   in string.   If the length  of string is  zero, or is  not a
  4867.                   string, then @CODE will return the value ERROR.
  4868.  
  4869.         Example   =@CODE("Test") = 84
  4870.                   =@CODE("test") = 116
  4871.                   =@CODE("@") = 64
  4872.                   =@CODE(" ") = 32
  4873.  
  4874.  
  4875.  
  4876.  
  4877.  
  4878.  
  4879.  
  4880.  
  4881.                                           70
  4882.  
  4883.  
  4884.  
  4885.  
  4886.  
  4887.  
  4888.         ---------------------------------------------------------------------
  4889.         @COLS                                                             Data
  4890.         ---------------------------------------------------------------------
  4891.         Function  Returns the number of columns in a range.
  4892.  
  4893.         Syntax    @COLS(range)
  4894.                   where range is a cell range, either named or otherwise.
  4895.  
  4896.         Remarks   This function returns the number of columns in range.
  4897.  
  4898.         Example   If the range A1..G20 is named BUILDINGS then
  4899.  
  4900.                   =@COLS(BUILDINGS) = 7
  4901.  
  4902.  
  4903.  
  4904.         ---------------------------------------------------------------------
  4905.         @COS                                                      Trigonometry
  4906.         ---------------------------------------------------------------------
  4907.         Function  Returns the cosine of an angle.
  4908.  
  4909.         Syntax    @COS(x)
  4910.                   where x is a number, a cell address, or a calculated value.
  4911.  
  4912.         Remarks   This function returns the cosine of the angle x.  x  must be
  4913.                   in radians.   If  x is  in degrees,  then you  must use  the
  4914.                   @RADIANS function to convert x to radians first.  The result
  4915.                   of @COS will be between -1 and 1.
  4916.  
  4917.                   Since the secant of an angle is simply the reciprocal of the
  4918.                   @COS function, you  can calculate the secant of  an angle by
  4919.                   dividing 1 by the cosine of the angle.
  4920.  
  4921.         Example   =@COS(3)  = -0.9900
  4922.                   =@COS(@PI)  = -1
  4923.                   =@COS(@RADIANS(180)) = -1
  4924.                   =1/@COS(4) = -1.52988 (the secant of 4)
  4925.  
  4926.  
  4927.         ---------------------------------------------------------------------
  4928.         @COSH                                                     Trigonometry
  4929.         ---------------------------------------------------------------------
  4930.         Function  Returns the hyperbolic cosine of an angle.
  4931.  
  4932.         Syntax    @COSH(x)
  4933.                   where x is a number, a cell address, or a calculated value.
  4934.  
  4935.         Remarks   This function  returns the hyperbolic cosine of the angle x.
  4936.                   x must be in radians.  If x is in degrees, then you must use
  4937.                   the @RADIANS function to convert x to radians first.
  4938.  
  4939.         Example   =@COSH(3) = 10.068
  4940.                   =@COSH(@PI) = 11.592
  4941.                   =@COSH(@RADIANS(180)) = 11.592
  4942.  
  4943.  
  4944.  
  4945.  
  4946.  
  4947.                                           71
  4948.  
  4949.  
  4950.  
  4951.  
  4952.  
  4953.  
  4954.         ---------------------------------------------------------------------
  4955.         @COUNT                                                     Statistical
  4956.         ---------------------------------------------------------------------
  4957.         Function  Returns the number of values in a list.
  4958.  
  4959.         Syntax    @COUNT(list)
  4960.                   where  list is a  list of  items separated  by commas,  or a
  4961.                   range containing values, or some combination of the two.
  4962.  
  4963.         Remarks   This function counts all of  the cells in list which contain
  4964.                   data.    Blank  cells  in  a  range  are  not  counted,  but
  4965.                   individual  cell references are always counted, even if they
  4966.                   are blank.
  4967.  
  4968.         Example   =@COUNT(0,1,2,3,4,5,6,7,8,9) = 10
  4969.  
  4970.                   If range A1 to A10 contained a list of names, then
  4971.  
  4972.                   =@COUNT(A1..A10) = 10
  4973.  
  4974.                   If 5 of those cells were deleted, then
  4975.  
  4976.                   =@COUNT(A1..A10) = 5
  4977.  
  4978.                   and
  4979.  
  4980.                   =@COUNT(A1..A10,C5) = 6, even if cell C5 is blank.
  4981.  
  4982.  
  4983.  
  4984.         ---------------------------------------------------------------------
  4985.         @CTERM                                                       Financial
  4986.         ---------------------------------------------------------------------
  4987.         Function  Returns the number  of periods for an investment  to reach a
  4988.                   future value.
  4989.  
  4990.         Syntax    @CTERM(rate,fv,pv)
  4991.                   where  rate, fv  and  pv  are  numbers, cell  addresses,  or
  4992.                   calculated values.
  4993.  
  4994.         Remarks   This function returns the number of  periods needed to reach
  4995.                   a given future  value, using a specified  initial investment
  4996.                   and a periodic interest rate.
  4997.  
  4998.                   rate is the  periodic interest rate, fv is  the future value
  4999.                   to be reached, and pv is the initial investment.
  5000.  
  5001.                   @CTERM is often used  in retirement planning, where a  fixed
  5002.                   amount  of money  (usually large)  is  necessary to  sustain
  5003.                   retirement.     @CTERM  can  determine  whether   a  certain
  5004.                   investment  is likely  to  reach the  monetary  goal in  the
  5005.                   necessary time period.
  5006.  
  5007.  
  5008.  
  5009.  
  5010.  
  5011.  
  5012.  
  5013.                                           72
  5014.  
  5015.  
  5016.  
  5017.  
  5018.  
  5019.  
  5020.         ---------------------------------------------------------------------
  5021.         @DATE                                                        Date/Time
  5022.         ---------------------------------------------------------------------
  5023.         Function  Returns a date number for a date.
  5024.  
  5025.         Syntax    @DATE(year,month,day)
  5026.                   where year, month,  and day are numbers, cell  addresses, or
  5027.                   calculated values.
  5028.  
  5029.         Remarks   This function returns the date  number for year, month,  and
  5030.                   day.  The  date number is  the number of  days from Dec  31,
  5031.                   1899 to the given date.  Formatting a cell containing a date
  5032.                   number using the  /Range Format Date commands  will turn the
  5033.                   number  into a  readable date.    The key  use for  all date
  5034.                   commands is  in date  arithmetic--the determination  of time
  5035.                   between two periods.
  5036.  
  5037.         Example   How many days are between Jan. 16, 1959 and June 10, 1960?
  5038.  
  5039.                   =@DATE(60,6,10)-@DATE(59,1,16) = 511.
  5040.  
  5041.                   What date is 90 days after April 15, 1989?
  5042.  
  5043.                   =@DATE(89,4,15)+90 = 32703
  5044.  
  5045.                   Formatting this value as a date gives July 14, 1989.
  5046.  
  5047.  
  5048.         ---------------------------------------------------------------------
  5049.         @DAY                                                         Date/Time
  5050.         ---------------------------------------------------------------------
  5051.         Function  Returns the day of the month.
  5052.  
  5053.         Syntax    @DAY(date number)
  5054.                   where  date number is a  number, cell address, or calculated
  5055.                   value.
  5056.  
  5057.         Remarks   This function returns the day of the month of date number.
  5058.  
  5059.                   The  @DAY function  is most  often used  to avoid  the often
  5060.                   tedious process of looking up dates; clearly, it is possible
  5061.                   to  simply look  at a cell  that is  formatted as a  date to
  5062.                   discover what  number is  the day that  is contained  there.
  5063.                   Using the @DAY function allows you to bypass the lookup; the
  5064.                   function extracts the day automatically.
  5065.  
  5066.         Example   =@DAY(@DATE(89,1,16)) = 16
  5067.  
  5068.  
  5069.         ---------------------------------------------------------------------
  5070.         @DDB                                                         Financial
  5071.         ---------------------------------------------------------------------
  5072.         Function  Returns the  amount of  depreciation of  an asset using  the
  5073.                   double-declining balance method.
  5074.  
  5075.         Syntax    @DDB(cost,salvage,life,period)
  5076.                   where  cost, salvage,  life, and  period  are numbers,  cell
  5077.  
  5078.  
  5079.                                           73
  5080.  
  5081.  
  5082.  
  5083.  
  5084.  
  5085.  
  5086.                   addresses, or calculated values.
  5087.  
  5088.         Remarks   This  function calculates the  amount of depreciation  of an
  5089.                   asset   using  the   Double-Declining   Balance  method   of
  5090.                   accelerated depreciation.
  5091.  
  5092.                   cost is the cost of the asset, salvage  is the salvage value
  5093.                   of the  asset after it  is totally depreciated, life  is the
  5094.                   useful life  of the asset,  and period is the  period within
  5095.                   that life in which the depreciation is being calculated.
  5096.  
  5097.                   The depreciation for a period is:
  5098.  
  5099.                   (book value * 2) / life
  5100.  
  5101.                   where the book value for a period is:
  5102.  
  5103.                   cost - (total depreciation for all prior periods)
  5104.  
  5105.                   The total depreciation over the life of the asset will never
  5106.                   exceed the assets cost - salvage value.
  5107.  
  5108.  
  5109.  
  5110.  
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119.  
  5120.  
  5121.  
  5122.  
  5123.  
  5124.  
  5125.  
  5126.  
  5127.  
  5128.  
  5129.  
  5130.  
  5131.  
  5132.  
  5133.  
  5134.  
  5135.  
  5136.  
  5137.  
  5138.  
  5139.  
  5140.  
  5141.  
  5142.  
  5143.  
  5144.  
  5145.                                           74
  5146.  
  5147.  
  5148.  
  5149.  
  5150.  
  5151.  
  5152.         ---------------------------------------------------------------------
  5153.         @DEGREES                                                  Trigonometry
  5154.         ---------------------------------------------------------------------
  5155.         Function  Converts radians to degrees.
  5156.  
  5157.         Syntax    @DEGREES(x)
  5158.                   where x is a number, a cell address, or a calculated value.
  5159.  
  5160.         Remarks   Although all  of InstaCalc's trigonometry  functions operate
  5161.                   on angular values expressed in  radians, it is often  easier
  5162.                   to analyze  angular data  when  expressed in  degrees.   The
  5163.                   @DEGREES function  provides an easy  way to convert  a value
  5164.                   from radians to degrees.
  5165.  
  5166.         Example   If cell A1 were a value in radians, and you wanted its value
  5167.                   in degrees, entering
  5168.  
  5169.                   =@DEGREES(A1)
  5170.  
  5171.                   would return the correct value in degrees.
  5172.  
  5173.                   =@DEGREES(@PI) = 180
  5174.                   =@DEGREES(@PI/2) = 90
  5175.  
  5176.  
  5177.         ---------------------------------------------------------------------
  5178.         @DIR                                                             Macro
  5179.         ---------------------------------------------------------------------
  5180.         Function  Returns the name of the current directory.
  5181.  
  5182.         Syntax    @DIR
  5183.  
  5184.         Remarks   This function returns the name of the current directory.
  5185.  
  5186.                   The  @DIR function  is  used  almost  exclusively  with  #IF
  5187.                   commands  in  applications,  to  test  whether  the  current
  5188.                   directory is the proper directory.
  5189.  
  5190.         Example   #IF @DIR="C:\InstaCalc\FINANCE"
  5191.                     '/fsDATA<Enter>
  5192.                   #ENDIF
  5193.  
  5194.                   will cause an  application to save a file  named DATA.INS if
  5195.                   the current directory is c:\InstaCalc\finance.
  5196.  
  5197.  
  5198.         ---------------------------------------------------------------------
  5199.         @ENVIRON                                                         Macro
  5200.         ---------------------------------------------------------------------
  5201.         Function  Returns the value of an environment variable.
  5202.  
  5203.         Syntax    @ENVIRON(var)
  5204.  
  5205.         Remarks   This  function allows  your applications  to  check the  DOS
  5206.                   environment for variables which may be stored there.
  5207.  
  5208.         Example   =@ENVIRON("COMSPEC") = "C:\COMMAND.COM"
  5209.  
  5210.  
  5211.                                           75
  5212.  
  5213.  
  5214.  
  5215.  
  5216.  
  5217.  
  5218.                   If your path is set to c:\dos;c:\toolbox then
  5219.  
  5220.                   =@ENVIRON("PATH") = "C:\DOS;C:\TOOLBOX"
  5221.  
  5222.  
  5223.  
  5224.         ---------------------------------------------------------------------
  5225.         @ERROR                                                            Data
  5226.         ---------------------------------------------------------------------
  5227.         Function  Returns the value ERROR.
  5228.  
  5229.         Syntax    @ERROR
  5230.  
  5231.         Remarks   This function causes the ERROR flag to appear in the cell in
  5232.                   which it is entered.
  5233.  
  5234.                   The @ERROR function is usually used as an argument in an @IF
  5235.                   function.   Often  it is  used to  flag values  that may  be
  5236.                   outside of a prescribed range.
  5237.  
  5238.         Example   This formula will  multiply B5 by 1.1, unless  B5 is greater
  5239.                   than C5.  If this happens, it will flag you with an ERROR.
  5240.  
  5241.                   =@IF(B5>C5,@ERROR,B5*1.1)
  5242.  
  5243.  
  5244.  
  5245.         ---------------------------------------------------------------------
  5246.         @EXACT                                                          String
  5247.         ---------------------------------------------------------------------
  5248.         Function  Compares two text strings.
  5249.  
  5250.         Syntax    @EXACT(string1,string2)
  5251.                   where  string1 and string2 are strings in quotations or cell
  5252.                   addresses.
  5253.  
  5254.         Remarks   This function  returns  the value  1 (TRUE)  if string1  and
  5255.                   string2 are  identical, or the  value 0 (FALSE) if  they are
  5256.                   not.
  5257.  
  5258.                   Comparing  two strings with the @EXACT function is different
  5259.                   than  comparing them with the =  operator.  Strings compared
  5260.                   with the @EXACT function must be exactly the same for a TRUE
  5261.                   result,  while  strings  compared with  the  =  operator may
  5262.                   differ in case and still be considered equal.
  5263.  
  5264.         Example   If cell D80 contains the string InstaCalc:
  5265.  
  5266.                   =@EXACT("InstaCalc",D80) = 1 (TRUE)
  5267.                   =@EXACT("INSTACALC",D80) = 0 (FALSE)
  5268.  
  5269.  
  5270.  
  5271.  
  5272.  
  5273.  
  5274.  
  5275.  
  5276.  
  5277.                                           76
  5278.  
  5279.  
  5280.  
  5281.  
  5282.  
  5283.  
  5284.         ---------------------------------------------------------------------
  5285.         @EXP                                                      Mathematical
  5286.         ---------------------------------------------------------------------
  5287.         Function  Returns e raised to a power.
  5288.  
  5289.         Syntax    @EXP(x)
  5290.                   where x is a number, a cell address, or a calculated value.
  5291.  
  5292.         Remarks   This function returns  e^x.  e is approximately  2.71828.  x
  5293.                   must be  less than  85.2 or an  overflow will occur  and the
  5294.                   value ERROR will be returned.   This function is the inverse
  5295.                   of  the @LN function.   To use the value  of e in a formula,
  5296.                   use @EXP(1).
  5297.  
  5298.         Example   =@EXP(3) = 20.0855
  5299.                   =@EXP(90) = ERROR
  5300.                   =@EXP(1) = 2.71828
  5301.                   =@EXP(@LN(5)) = 5
  5302.  
  5303.  
  5304.  
  5305.         ---------------------------------------------------------------------
  5306.         @FACT                                                     Mathematical
  5307.         ---------------------------------------------------------------------
  5308.         Function  Returns the factorial of a number.
  5309.  
  5310.         Syntax    @FACT(x)
  5311.                   where x is a number, a cell address, or a calculated value.
  5312.  
  5313.         Remarks   The factorial of x is x * (x-1) * (x-2)...* 1.
  5314.  
  5315.                   x must be between 0 and 30 (inclusive), otherwise @FACT will
  5316.                   overflow and return ERROR.  x should be an integer; if it is
  5317.                   not  an integer,  the  program  will use  the  value of  the
  5318.                   argument rounded to the nearest integer.
  5319.  
  5320.         Example   =@FACT(5) = 5*4*3*2*1 = 120
  5321.                   =@FACT(4.7) = 120
  5322.                   =@FACT(45) = ERROR
  5323.  
  5324.  
  5325.  
  5326.  
  5327.         ---------------------------------------------------------------------
  5328.         @FALSE                                                         Logical
  5329.         ---------------------------------------------------------------------
  5330.         Function  Returns the value FALSE (0).
  5331.  
  5332.         Syntax    @FALSE
  5333.  
  5334.         Remarks   This function returns the value 0 (FALSE).
  5335.  
  5336.                   The primary purpose  of the @FALSE function is  to help make
  5337.                   logical formulas easier to read.
  5338.  
  5339.         Example   @IF(B4>1,@TRUE,@FALSE)=0, if B4 is not greater than 1
  5340.  
  5341.  
  5342.  
  5343.                                           77
  5344.  
  5345.  
  5346.  
  5347.  
  5348.  
  5349.  
  5350.         ---------------------------------------------------------------------
  5351.         @FILE                                                            Macro
  5352.         ---------------------------------------------------------------------
  5353.         Function  Returns various information regarding a file.
  5354.  
  5355.         Syntax    @FILE(filename,attribute)
  5356.                   where  filename and attribute  are strings in  quotations or
  5357.                   cell addresses.
  5358.  
  5359.         Remarks   This  function  returns various  information about  the file
  5360.                   named filename.   Attribute is one of  the following strings
  5361.                   which tells what  information to return: "PATH",  "DATE", or
  5362.                   "EXIST".   filename can be a full path  name, or just a file
  5363.                   name by itself.   If filename is just the name  of the file,
  5364.                   InstaCalc  will look for the file  in the current directory.
  5365.                   @FILE  is intended for  use in application  programs only to
  5366.                   test various characteristics of files your program uses.
  5367.  
  5368.                   "PATH"    returns the full pathname of filename.
  5369.  
  5370.                   "DATE"    returns  a combined date  and time number  for the
  5371.                             date and time that filename was last written to.
  5372.  
  5373.                   "EXIST"   returns TRUE (logical  1) if filename exists,  and
  5374.                             FALSE (logical 0) if it doesn't.
  5375.  
  5376.  
  5377.         ---------------------------------------------------------------------
  5378.         @FIND                                                           String
  5379.         ---------------------------------------------------------------------
  5380.         Function  Finds the occurrence of a string in a longer string.
  5381.  
  5382.         Syntax    @FIND(substring,string,n)
  5383.                   where substring  and string  are strings  in quotations,  or
  5384.                   cell  addresses,  and  n  is  a  number,  cell  address,  or
  5385.                   calculated value.
  5386.  
  5387.         Remarks   substring is the  part of  a string to  find, string is  the
  5388.                   longer  string  in  which  to  find  the  substring,  and  n
  5389.                   designates where in the string to begin looking.  The search
  5390.                   is case-sensitive.
  5391.  
  5392.                   @FIND  returns the  position in  string  where substring  is
  5393.                   found.  That  is, if substring begins at  the 20th character
  5394.                   string, 20 will  be returned.  If  no match is found,  @FIND
  5395.                   returns a value of 0.
  5396.  
  5397.         Example   To find the  word "time" in the phrase, "Now is the time for
  5398.                   all good men to come to the aid of their country,":
  5399.  
  5400.                   If the longer string is entered in cell D2, then
  5401.  
  5402.                   =@FIND("time",D2,1) = 12
  5403.  
  5404.                   You can  also search for  the second occurrence of  "the" in
  5405.                   the above phrase with
  5406.  
  5407.  
  5408.  
  5409.                                           78
  5410.  
  5411.  
  5412.  
  5413.  
  5414.  
  5415.  
  5416.                   =@FIND("the",D2,15)
  5417.  
  5418.                   InstaCalc will begin the  search at the 15th character,  and
  5419.                   will return the position, 45.
  5420.  
  5421.  
  5422.  
  5423.         ---------------------------------------------------------------------
  5424.         @FNAME                                                           Macro
  5425.         ---------------------------------------------------------------------
  5426.         Function  Returns the name of the file currently in memory.
  5427.  
  5428.         Syntax    @FNAME
  5429.  
  5430.         Remarks   The  @FNAME function returns the name  of the file currently
  5431.                   being worked on.
  5432.  
  5433.                   The @FNAME function is typically used in macros to determine
  5434.                   the current file name without user intervention.
  5435.  
  5436.  
  5437.         ---------------------------------------------------------------------
  5438.         @FORMAT                                                         String
  5439.         ---------------------------------------------------------------------
  5440.         Function  Converts a number to a string using a selected format.
  5441.  
  5442.         Syntax    @FORMAT(x,form,dp)
  5443.                   where  x,  form,  and  dp are  numbers,  cell  addresses, or
  5444.                   calculated values.
  5445.  
  5446.         Remarks   This function converts a number to a string using the format
  5447.                   form and dp decimal places.  @FORMAT is especially useful in
  5448.                   applications  where you  want  to print  out values  using a
  5449.                   specific format such as currency.
  5450.  
  5451.                   form FORMAT
  5452.                   0    Default
  5453.                   1    Fixed
  5454.                   2    Currency
  5455.                   3    Percent
  5456.                   4    Scientific
  5457.                   5    Hidden
  5458.                   6    Text
  5459.                   7    Fixed with commas
  5460.                   8    Currency with commas
  5461.                   9    Percent with commas
  5462.                   10   dd-mmm-yy
  5463.                   11   dd-mmm
  5464.                   12   mmm-yy
  5465.                   13   mm/dd/yy
  5466.                   14   Month DD, YYYY
  5467.                   15   HH:MM AM/PM
  5468.                   16   HH:MM Military
  5469.                   17   General
  5470.                                    
  5471.  
  5472.         Example   =@FORMAT(1234.567,8,2) = $1,234.57
  5473.  
  5474.  
  5475.                                           79
  5476.  
  5477.  
  5478.  
  5479.  
  5480.  
  5481.  
  5482.                   =@FORMAT(0.12345,3,2) = 12.35%
  5483.                   =@FORMAT(33000,14,0) = May 7, 1990
  5484.  
  5485.  
  5486.  
  5487.         ---------------------------------------------------------------------
  5488.         @FRAC                                                     Mathematical
  5489.         ---------------------------------------------------------------------
  5490.         Function  Returns the fractional part of a number.
  5491.  
  5492.         Syntax    @FRAC(x)
  5493.                   where x is a number, a cell address, or a calculated value.
  5494.  
  5495.         Remarks   This function returns  only the part of x  which comes after
  5496.                   the  decimal  point.   If  x  is  negative, then  the  value
  5497.                   returned by @FRAC will be negative also.
  5498.  
  5499.         Example   =@FRAC(1.23) = 0.23
  5500.                   =@FRAC(-1.23) = -0.23
  5501.                   =@FRAC(@PI) = 0.14159
  5502.  
  5503.  
  5504.         ---------------------------------------------------------------------
  5505.         @FV                                                          Financial
  5506.         ---------------------------------------------------------------------
  5507.         Function  Returns the future value of an annuity.
  5508.  
  5509.         Syntax    @FV(pmt,int,term)
  5510.                   where  pmt,  int,  term  are  numbers,  cell  addresses,  or
  5511.                   calculated values.
  5512.  
  5513.         Remarks   This function calculates the future value of an annuity.
  5514.  
  5515.                   pmt is the amount of payment per  period in the annuity, int
  5516.                   is  the discount  rate per  period,  and term  is the  total
  5517.                   number of payments to be made.
  5518.  
  5519.                   @FV  assumes that payments are being made  at the end of the
  5520.                   period.  If payments are due at the beginning of the period,
  5521.                   simply multiply the answer by (1+int).
  5522.  
  5523.                   IMPORTANT: The interest rate must be a per period rate.  For
  5524.                   example, if the  term is 240, indicating  (probably) monthly
  5525.                   payments over twenty years, the interest rate must also be a
  5526.                   monthly rate.  Thus,  a 12% yearly rate would be  entered as
  5527.                   1%.
  5528.  
  5529.         Example   To calculate  the future  value of  an  ordinary annuity  in
  5530.                   which the payments  are $500.00, made monthly  for 20 years,
  5531.                   and the yearly interest rate is 10%:
  5532.  
  5533.                   =@FV(500,0.1/12,240) = 379,684.42
  5534.  
  5535.                   =@FV(500,0.1/12,240)*(1+0.1/12) = 382,848.45
  5536.  
  5537.  
  5538.  
  5539.  
  5540.  
  5541.                                           80
  5542.  
  5543.  
  5544.  
  5545.  
  5546.  
  5547.  
  5548.         ---------------------------------------------------------------------
  5549.         @GLOBAL                                                           Data
  5550.         ---------------------------------------------------------------------
  5551.         Function  Returns information about the current Worksheet.
  5552.  
  5553.         Syntax    @GLOBAL(attribute)
  5554.  
  5555.         Remarks   This function  returns global information about  the current
  5556.                   worksheet.  Attribute is one  of the following strings which
  5557.                   tells  what  information  to  return:  "prefix",  "protect",
  5558.                   "width", "format","calc",  "insert", or "enter".  @GLOBAL is
  5559.                   intended for  use in  application programs  to test  various
  5560.                   characteristics of the current worksheet.
  5561.  
  5562.                   attribute      @GLOBAL returns
  5563.  
  5564.                   "prefix"       the global justification character
  5565.                                  ' if left justified
  5566.                                  " if right justified
  5567.                                  ^ if centered
  5568.  
  5569.                   "protect"      the Worksheet protection
  5570.                                  0 = Disabled, 1 = Enabled
  5571.  
  5572.                   "width"        the global column width
  5573.  
  5574.                   "format"       the global format
  5575.                                  0 Default
  5576.                                  1 Fixed
  5577.                                  2 Currency
  5578.                                  3 Percent
  5579.                                  4 Scientific
  5580.                                  5 Hidden
  5581.                                  6 Text
  5582.                                  7 Fixed with commas
  5583.                                  8 Currency with commas
  5584.                                  9 Percent with commas
  5585.                                  10 dd-mmm-yy
  5586.                                  11 dd-mmm
  5587.                                  12 mmm-yy
  5588.                                  13 mm/dd/yy
  5589.                                  14 Month DD, YYYY
  5590.                                  15 HH:MM AM/PM
  5591.                                  16 HH:MM Military
  5592.                                  17 General
  5593.  
  5594.  
  5595.                   "calc"         the recalculation mode
  5596.                                  0 = Manual, 1 = Automatic
  5597.  
  5598.                   "insert"       the status of insert mode
  5599.                                  0 = Off, 1 = On
  5600.  
  5601.                   "enter"        the status of <Ctrl><F9> Enter mode
  5602.                                  0 = Off, 1 = On
  5603.  
  5604.  
  5605.  
  5606.  
  5607.                                           81
  5608.  
  5609.  
  5610.  
  5611.  
  5612.  
  5613.  
  5614.         ---------------------------------------------------------------------
  5615.         @HLOOKUP                                                          Data
  5616.         ---------------------------------------------------------------------
  5617.         Function  Looks up an item in a horizontal lookup table.
  5618.  
  5619.         Syntax    @HLOOKUP(x,range,row offset)
  5620.                   where range  is a  range of cells,  named or  otherwise; row
  5621.                   offset is a number, cell address, or calculated value; and x
  5622.                   is a number, text, cell address, or calculated value.
  5623.  
  5624.         Remarks   This function looks up and retrieves  a value or text from a
  5625.                   horizontal lookup table.  range  is the range of cells which
  5626.                   makes up the lookup table.
  5627.  
  5628.                   If x is  text, @HLOOKUP will compare x with each cell in the
  5629.                   top  row of range,  and if a  match is found,  will move row
  5630.                   offset rows from that cell, and will return the value in the
  5631.                   resulting cell.  If x does not match any of the cells in the
  5632.                   top row of range, then @HLOOKUP will return the value ERROR.
  5633.  
  5634.                   If x  is a  value instead of  text, @HLOOKUP will  compare x
  5635.                   with each cell in the top row of range until it finds a cell
  5636.                   which is greater  than or equal to  x.  This means  that the
  5637.                   values in  the top row  of range must be  in ascending order
  5638.                   for @HLOOKUP to work correctly.  If the value in the cell is
  5639.                   equal to x, @HLOOKUP will consider it  a match.  If the cell
  5640.                   is greater than  x, @HLOOKUP will move back  to the previous
  5641.                   cell and consider it a match.  For example, if the values in
  5642.                   the top row  of range are  100, 200, 300,  and 400, and  the
  5643.                   value  of x  is  250,  then @HLOOKUP  will  search until  it
  5644.                   reaches  300, and  will  then  move back  and  use the  cell
  5645.                   containing  200  as the  match.    When  a match  is  found,
  5646.                   @HLOOKUP will move row offset  rows from that cell, and will
  5647.                   return the value  in the resulting  cell.   If x is  smaller
  5648.                   than the first cell in the top row, @HLOOKUP will return the
  5649.                   value ERROR.
  5650.  
  5651.  
  5652.  
  5653.  
  5654.  
  5655.  
  5656.  
  5657.  
  5658.  
  5659.  
  5660.  
  5661.  
  5662.  
  5663.  
  5664.  
  5665.  
  5666.  
  5667.  
  5668.  
  5669.  
  5670.  
  5671.  
  5672.  
  5673.                                           82
  5674.  
  5675.  
  5676.  
  5677.  
  5678.  
  5679.  
  5680.         ---------------------------------------------------------------------
  5681.         @HOUR                                                        Date/Time
  5682.         ---------------------------------------------------------------------
  5683.         Function  Returns the hour of a time number.
  5684.  
  5685.         Syntax    @HOUR(time number)
  5686.                   where time number  is a number, cell address,  or calculated
  5687.                   value.
  5688.  
  5689.         Remarks   This function returns  the hour of time number.  A result of
  5690.                   0  represents midnight,  1  represents  1:00  p.m.,  and  23
  5691.                   represents 11:00 p.m.
  5692.  
  5693.                   time number should be  a value between  0 and 1.   InstaCalc
  5694.                   will  not ignore  a mixed  number;  it will  simply use  the
  5695.                   fractional part.
  5696.  
  5697.                   The @HOUR  function is most  often used in  conjunction with
  5698.                   other  date  and  time  functions to  return  only  the hour
  5699.                   portion of a previously entered value.  
  5700.  
  5701.         Example   =@HOUR(@NOW) = the current hour (in military time)
  5702.                   =@HOUR(@TIME(13,40,55)) = 13
  5703.  
  5704.  
  5705.  
  5706.         ---------------------------------------------------------------------
  5707.         @IF                                                            Logical
  5708.         ---------------------------------------------------------------------
  5709.         Function  Returns one of two values depending on a condition.
  5710.  
  5711.         Syntax    @IF(condition,x,y)
  5712.                   where condition  is a  conditional statement,  often in  the
  5713.                   form of an equation,  other times in the form of  a "greater
  5714.                   than" or "less  than" statement (or other inequality); and x
  5715.                   and y are values, functions, or strings.
  5716.  
  5717.         Remarks   This functions evaluates  condition and returns  x if it  is
  5718.                   TRUE, and y if it is FALSE.
  5719.  
  5720.                   @IF is one of the most powerful InstaCalc functions.  It not
  5721.                   only evaluates  whether a  condition exists,  it also  takes
  5722.                   action  depending on the  existence or non-existence  of the
  5723.                   condition.   More importantly, conditions can be built which
  5724.                   are  very complex, and may incorporate the Boolean operators
  5725.                   (&, |, and ~) in addition to the logical  operators.  Nested
  5726.                   @IF functions are allowed.
  5727.  
  5728.                   x and y may be both numeric, both text, or one of each.
  5729.  
  5730.  
  5731.  
  5732.  
  5733.  
  5734.  
  5735.  
  5736.  
  5737.  
  5738.  
  5739.                                           83
  5740.  
  5741.  
  5742.  
  5743.  
  5744.  
  5745.  
  5746.         ---------------------------------------------------------------------
  5747.         @INDEX                                                            Data
  5748.         ---------------------------------------------------------------------
  5749.         Function  Looks up data in a array.
  5750.  
  5751.         Syntax    @INDEX(range,col,row)
  5752.                   where range is a range of cells, named or otherwise; and col
  5753.                   and row are numbers, cell addresses, or calculated values.
  5754.  
  5755.         Remarks   This function  looks  up and  returns  data from  an  array.
  5756.                   range is the array, and col and row are the offsets into the
  5757.                   array.  The top row of  range has a row offset of 0  and the
  5758.                   left column of range has a column offset of 0.
  5759.  
  5760.  
  5761.  
  5762.         ---------------------------------------------------------------------
  5763.         @INT                                                      Mathematical
  5764.         ---------------------------------------------------------------------
  5765.         Function  Returns the integer part of a number.
  5766.  
  5767.         Syntax    @INT(x)
  5768.                   where x is a number, a cell address, or a calculated value.
  5769.  
  5770.         Remarks   This function returns the integer  part of a value, which is
  5771.                   the part of the argument which is  to the left (in front of)
  5772.                   the decimal point.   The sign of the  value returned is  the
  5773.                   same as that of the argument.
  5774.  
  5775.                   The   @INT  function  does  not  round  values  for  further
  5776.                   calculation.   (To round  numbers, use  @ROUND.)   It merely
  5777.                   truncates the numbers; only the integer part of the value is
  5778.                   used in further calculations.  The  sign of the value can be
  5779.                   either positive or negative.  
  5780.  
  5781.         Example   =@INT(-2.34) = -2
  5782.                   =@INT(1.2) = 1
  5783.                   =@INT(1.99) = 1
  5784.                   =@INT(@PI) = 3
  5785.  
  5786.  
  5787.  
  5788.         ---------------------------------------------------------------------
  5789.         @IRR                                                         Financial
  5790.         ---------------------------------------------------------------------
  5791.         Function  Returns  the internal  rate of  return of  a series  of cash
  5792.         flows.
  5793.  
  5794.         Syntax    @IRR(estimate,range)
  5795.                   where  estimate is  a number,  cell  address, or  calculated
  5796.                   value; and range is a range of cells, named or otherwise.
  5797.  
  5798.         Remarks   This  function calculates  the discount  rate  at which  the
  5799.                   present value of  an outlay (investment) equals  the present
  5800.                   value  of  cash  inflows  stemming  (presumably)  from  that
  5801.                   investment.  Another  way of saying this  is that it is  the
  5802.                   discount rate at which the  net present value of outlays and
  5803.  
  5804.  
  5805.                                           84
  5806.  
  5807.  
  5808.  
  5809.  
  5810.  
  5811.  
  5812.                   inflows is zero.
  5813.  
  5814.                   estimate should be a value between 0 and 1 that represents a
  5815.                   reasonable guess at  the rate of return  for the investment,
  5816.                   and range  is a  range of  cells that  contain the net  cash
  5817.                   flows resulting from the investment.  The first value in the
  5818.                   range  must be negative,  indicating an investment  was made
  5819.                   which constituted an outflow of moneys.
  5820.  
  5821.                   It is assumed that the cash  flows that appear in the  range
  5822.                   are received at  regular intervals.  They need  not be even,
  5823.                   but they should at least approximate regular flows.  
  5824.  
  5825.                   The @IRR function further  assumes that the income  from the
  5826.                   investment is reinvested at the rate of return.  If this not
  5827.                   the  case (as with a capital investment in plant equipment),
  5828.                   @IRR  will be  overstated.    The  amount  of  overstatement
  5829.                   depends on  the disparity  between the assumed  reinvestment
  5830.                   and the actual rate of reinvestment.
  5831.  
  5832.                   Finally, since  @IRR is  calculated by  iteration, a  really
  5833.                   poor  estimate  may  cause  the  function  to  misstate  the
  5834.                   discount rate.
  5835.  
  5836.  
  5837.  
  5838.         ---------------------------------------------------------------------
  5839.         @ISERR                                                         Logical
  5840.         ---------------------------------------------------------------------
  5841.         Function  Tests whether an item is an error.
  5842.  
  5843.         Syntax    @ISERR(x)
  5844.                   where x is a cell reference or a formula.
  5845.  
  5846.         Remarks   This function  is used to  determine whether x is  the value
  5847.                   ERROR.   @ISERR is used  to stop ERROR values  from carrying
  5848.                   through to other parts of the worksheet.
  5849.  
  5850.         Example   @ISERR(1/0) = 1 (TRUE)
  5851.  
  5852.                   @ISERR(A1)  =  1  if  cell  A1  contains  the  value  ERROR;
  5853.                   otherwise it equals 0.
  5854.  
  5855.  
  5856.         ---------------------------------------------------------------------
  5857.         @ISNUM                                                         Logical
  5858.         ---------------------------------------------------------------------
  5859.         Function  Tests whether an item is a number.
  5860.  
  5861.         Syntax    @ISNUM(x)
  5862.                   where x is a cell address or a formula.
  5863.  
  5864.         Remarks   This function returns the value 1 (TRUE) if x is a numerical
  5865.                   value; otherwise it returns the value 0 (FALSE).
  5866.  
  5867.         Example   @ISNUM(1) = 1 (TRUE)
  5868.  
  5869.  
  5870.  
  5871.                                           85
  5872.  
  5873.  
  5874.  
  5875.  
  5876.  
  5877.  
  5878.                   @ISNUM("text") = 0 (FALSE)
  5879.  
  5880.                   @ISNUM(A1)  =  1  if  cell  A1  contains  a  numeric  value;
  5881.                   otherwise it equals 0.
  5882.  
  5883.  
  5884.         ---------------------------------------------------------------------
  5885.         @ISTEXT                                                        Logical
  5886.         ---------------------------------------------------------------------
  5887.         Function  Tests whether an item is text.
  5888.  
  5889.         Syntax    @ISTEXT(x)
  5890.                   where x is a cell address or a formula.
  5891.  
  5892.         Remarks   This function returns the value  1 (TRUE) if x is  a textual
  5893.                   value; otherwise it returns the value 0 (FALSE).
  5894.  
  5895.         Example   @ISTEXT(1) = 0 (FALSE)
  5896.  
  5897.                   @ISTEXT("text") = 1 (TRUE)
  5898.  
  5899.                   @ISTEXT(A1)  =  1  if  cell A1  contains  a  textual  value;
  5900.                   otherwise it equals 0.
  5901.  
  5902.  
  5903.  
  5904.         ---------------------------------------------------------------------
  5905.         @LEFT                                                           String
  5906.         ---------------------------------------------------------------------
  5907.         Function  Returns the left part of a text string.
  5908.  
  5909.         Syntax    @LEFT(string,n)
  5910.                   where string is  a string in quotations, or  a cell address;
  5911.                   and n is a number, cell address, or calculated value.
  5912.  
  5913.         Remarks   This function returns the leftmost n characters from string.
  5914.  
  5915.                   @LEFT is  often used when extracting portions  of a string--
  5916.                   for example, an  area code or the first digits  of a billing
  5917.                   code.
  5918.  
  5919.  
  5920.         ---------------------------------------------------------------------
  5921.         @LEN                                                            String
  5922.         ---------------------------------------------------------------------
  5923.         Function  Returns the length of a text string.
  5924.  
  5925.         Syntax    @LEN(string)
  5926.                   where string is a string in quotations, or a cell address.
  5927.  
  5928.         Remarks   This function returns the number of characters in string.
  5929.  
  5930.         Example   If cell A5  contains 'Goodbye and B9 contains  ' cruel world
  5931.                   then
  5932.  
  5933.                   =@LEN(A5) = 7
  5934.                   =@LEN(B9) = 12
  5935.  
  5936.  
  5937.                                           86
  5938.  
  5939.  
  5940.  
  5941.  
  5942.  
  5943.  
  5944.                   =@LEN(A5+B9) = 19
  5945.  
  5946.  
  5947.  
  5948.         ---------------------------------------------------------------------
  5949.         @LN                                                       Mathematical
  5950.         ---------------------------------------------------------------------
  5951.         Function  Returns the natural logarithm of a number.
  5952.  
  5953.         Syntax    @LN(x)
  5954.                   where x is a number, a cell address, or a calculated value.
  5955.  
  5956.         Remarks   This function calculates  the natural logarithm (base  e) of
  5957.                   x.   It is  the inverse  of the  @EXP function.   The  value
  5958.                   cannot be  negative or equal to zero, or an ERROR value will
  5959.                   be returned.
  5960.  
  5961.         Example   =@LN(1000) = 6.9078
  5962.  
  5963.                   =@LN(@EXP(3)) = 3   since  @LN is  the inverse  of the  @EXP
  5964.                                       function.
  5965.  
  5966.  
  5967.  
  5968.         ---------------------------------------------------------------------
  5969.         @LOG                                                      Mathematical
  5970.         ---------------------------------------------------------------------
  5971.         Function  Returns the common logarithm of a number.
  5972.  
  5973.         Syntax    @LOG(x)
  5974.                   where x is a number, a cell address, or a calculated value.
  5975.  
  5976.  
  5977.         Remarks   The @LOG function returns  the logarithm of x.  It  uses the
  5978.                   base 10, and is the reciprocal of exponentiation.  The value
  5979.                   must be greater than zero;  a negative or zero value returns
  5980.                   an ERROR value.
  5981.  
  5982.         Example   =@LOG(1000) = 3
  5983.                   =@LOG(10^5) = 5
  5984.                   =@LOG(-12) = ERROR
  5985.  
  5986.  
  5987.  
  5988.  
  5989.  
  5990.  
  5991.  
  5992.  
  5993.  
  5994.  
  5995.  
  5996.  
  5997.  
  5998.  
  5999.  
  6000.  
  6001.  
  6002.  
  6003.                                           87
  6004.  
  6005.  
  6006.  
  6007.  
  6008.  
  6009.  
  6010.         ---------------------------------------------------------------------
  6011.         @LOGB                                                     Mathematical
  6012.         ---------------------------------------------------------------------
  6013.         Function  Returns the logarithm (base b) of a number.
  6014.  
  6015.         Syntax    @LOGB(x,b)
  6016.                   where x  and b  are numbers, cell  addresses, or  calculated
  6017.                   values.
  6018.  
  6019.         Remarks   This function  calculates the logarithm  of x.  It  uses the
  6020.                   base b, and is the reciprocal  of exponentiation.  x must be
  6021.                   greater than  zero, otherwise  @LOGB will  return the  value
  6022.                   ERROR.
  6023.  
  6024.         Example   =@LOGB(1000,17) = 2.438134
  6025.                   =@LOGB(17^5,17) = 5
  6026.                   =@LOGB(-12,3) = ERROR
  6027.  
  6028.  
  6029.         ---------------------------------------------------------------------
  6030.         @LOWER                                                          String
  6031.         ---------------------------------------------------------------------
  6032.         Function  Converts all the characters of a text string to lowercase.
  6033.  
  6034.         Syntax    @LOWER(string)
  6035.                   where string is a string in quotations, or a cell address.
  6036.  
  6037.         Remarks   The @LOWER function converts all of the characters in string
  6038.                   to lowercase letters.
  6039.  
  6040.         Example   If A1 contains the text "Instruction Manual", then
  6041.  
  6042.                   =@LOWER(A1) = instruction manual
  6043.  
  6044.  
  6045.  
  6046.         ---------------------------------------------------------------------
  6047.         @MAX                                                       Statistical
  6048.         ---------------------------------------------------------------------
  6049.         Function  Returns the maximum value from a list of values.
  6050.  
  6051.         Syntax    @MAX(list)
  6052.                   where list  is a  list of values  separated by commas,  or a
  6053.                   range containing values, or some combination of the two.
  6054.  
  6055.         Remarks   This function returns the largest value in list.  When lists
  6056.                   become very  large, it becomes useful to  easily and quickly
  6057.                   determine the largest value in  the list.  The @MAX function
  6058.                   accommodates this need.  Blank and text cells are ignored by
  6059.                   @MAX.   If the  list consists entirely  of blank  cells, the
  6060.                   value ERROR will be returned, because you can't  determine a
  6061.                   maximum of no values.
  6062.  
  6063.         Example   =@MAX(0,1,2,3,4,5,6,7,8,9)  = 9
  6064.  
  6065.  
  6066.  
  6067.  
  6068.  
  6069.                                           88
  6070.  
  6071.  
  6072.  
  6073.  
  6074.  
  6075.  
  6076.         ---------------------------------------------------------------------
  6077.         @MEMORY                                                          Macro
  6078.         ---------------------------------------------------------------------
  6079.         Function  Returns the amount of memory available.
  6080.  
  6081.         Syntax    @MEMORY
  6082.  
  6083.         Remarks   This   function  returns  the  number  of  bytes  of  memory
  6084.                   available.
  6085.  
  6086.  
  6087.  
  6088.         ---------------------------------------------------------------------
  6089.         @MID                                                            String
  6090.         ---------------------------------------------------------------------
  6091.         Function  Returns the midsection of a text string.
  6092.  
  6093.         Syntax    @MID(string,start,n)
  6094.                   where string is  a string in quotations, or  a cell address;
  6095.                   and start  and n are numbers, cell  addresses, or calculated
  6096.                   values. 
  6097.  
  6098.         Remarks   This function  searches  string,  starting  with  the  start
  6099.                   character, and extracts and returns n characters.
  6100.  
  6101.  
  6102.         ---------------------------------------------------------------------
  6103.         @MIN                                                       Statistical
  6104.         ---------------------------------------------------------------------
  6105.         Function  Returns the minimum value from a list of values.
  6106.  
  6107.         Syntax    @MIN(list)
  6108.                   where list  is a list  of values  separated by commas,  or a
  6109.                   range containing values, or some combination of the two.
  6110.  
  6111.         Remarks   This  function returns  the smallest  value in  list.   When
  6112.                   lists  become very large,  it becomes  useful to  easily and
  6113.                   quickly determine the smallest value  in the list.  The @MIN
  6114.                   function accommodates this need.   Blank and text cells  are
  6115.                   ignored.  If the list  consists entirely of blank cells, the
  6116.                   value ERROR will be returned because you can't determine the
  6117.                   minimum of no values.
  6118.  
  6119.         Example   =@MIN(0,1,2,3,4,5,6,7,8,9)  = 0
  6120.  
  6121.                   If  cells  A1  to  A10  contained those  values,  but  in  a
  6122.                   different order,  the  formula =@MIN(A1..A10)   would  still
  6123.                   return the value 0.
  6124.  
  6125.  
  6126.  
  6127.         ---------------------------------------------------------------------
  6128.         @MINUTE                                                      Date/Time
  6129.         ---------------------------------------------------------------------
  6130.         Function  Returns the minute of a time number.
  6131.  
  6132.         Syntax    @MINUTE(time number)
  6133.  
  6134.  
  6135.                                           89
  6136.  
  6137.  
  6138.  
  6139.  
  6140.  
  6141.  
  6142.                   where time number is a  number, cell address, or  calculated
  6143.                   value.
  6144.  
  6145.         Remarks   This function  returns the number  of the minute  (between 0
  6146.                   and 59) represented by time number.
  6147.  
  6148.                   time  number  should  be  a  value  between  0  and  1  (not
  6149.                   inclusive).    InstaCalc  will  not  ignore  mixed  numbers;
  6150.                   rather, it will extract only the fractional part.
  6151.  
  6152.                   @MINUTE is most often useful in conjunction with other  date
  6153.                   and time  functions.  @MINUTE  will extract only  the minute
  6154.                   portion of a time value.
  6155.  
  6156.         Example   To find the current minute, and enter it into a cell, enter:
  6157.  
  6158.                   =@MINUTE(@NOW)
  6159.                   =@MINUTE(@TIME(10,20,30)) = 20
  6160.  
  6161.  
  6162.         ---------------------------------------------------------------------
  6163.         @MOD                                                      Mathematical
  6164.         ---------------------------------------------------------------------
  6165.         Function  Returns the remainder after dividing two numbers.
  6166.  
  6167.         Syntax    @MOD(x,y)
  6168.                   where x  and y  are numbers,  cell addresses,  or calculated
  6169.                   values.
  6170.  
  6171.         Remarks   This function returns the remainder after dividing x by y.
  6172.  
  6173.                   @MOD function  will typically  be used any  time that  it is
  6174.                   necessary to use the remainder in calculations.  @MOD can be
  6175.                   used to determine if x is odd or even by setting y to 2.  If
  6176.                   the result is 0, then x is even; if the  result is 1, then x
  6177.                   is odd.   If y  has a value  of 0, ERROR  will be  returned,
  6178.                   since dividing by 0 is illegal.
  6179.  
  6180.         Example   =@MOD(5,2) = 1
  6181.                   =@MOD(6,2) = 0
  6182.                   =@MOD(12,7) = 5
  6183.  
  6184.  
  6185.         ---------------------------------------------------------------------
  6186.         @MONTH                                                       Date/Time
  6187.         ---------------------------------------------------------------------
  6188.         Function  Returns the month of a date number.
  6189.  
  6190.         Syntax    @MONTH(date number)
  6191.                   where date number is  a number, cell address,  or calculated
  6192.                   value.
  6193.  
  6194.         Remarks   This function returns only the month portion (1..12) of date
  6195.                   number.
  6196.  
  6197.                   Most often, the @MONTH function is used in conjunction  with
  6198.                   other date function.   @MONTH extracts the month portion  of
  6199.  
  6200.  
  6201.                                           90
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.                   the date given in its argument.
  6209.  
  6210.         Example   If the current month is April, then
  6211.  
  6212.                   =@MONTH(@NOW) = 4
  6213.  
  6214.                   =@MONTH(@DATE(89,11,3)) = 11
  6215.  
  6216.  
  6217.  
  6218.         ---------------------------------------------------------------------
  6219.         @NMONTH                                                      Date/Time
  6220.         ---------------------------------------------------------------------
  6221.         Function  Returns the name of a month.
  6222.  
  6223.         Syntax    @NMONTH(x)
  6224.                   where x is a number, cell address, or calculated value.
  6225.  
  6226.         Remarks   The @NMONTH function returns the name of month x.
  6227.  
  6228.                   @NMONTH  is  often  used  in  conjunction  with  the  @MONTH
  6229.                   function to return the month name of a date number.
  6230.  
  6231.         Example   If A1  contains the date  number 32524 (the date  number for
  6232.                   1/16/89), then
  6233.  
  6234.                   =@NMONTH(@MONTH(A1)) = January
  6235.  
  6236.                   If the current month is October, then
  6237.  
  6238.                   =@NMONTH(@MONTH(@NOW)) = October
  6239.  
  6240.  
  6241.  
  6242.  
  6243.  
  6244.  
  6245.  
  6246.  
  6247.  
  6248.  
  6249.  
  6250.  
  6251.  
  6252.  
  6253.  
  6254.  
  6255.  
  6256.  
  6257.  
  6258.  
  6259.  
  6260.  
  6261.  
  6262.  
  6263.  
  6264.  
  6265.  
  6266.  
  6267.                                           91
  6268.  
  6269.  
  6270.  
  6271.  
  6272.  
  6273.  
  6274.         ---------------------------------------------------------------------
  6275.         @NOW                                                         Date/Time
  6276.         ---------------------------------------------------------------------
  6277.         Function  Returns the current date and time numbers.
  6278.  
  6279.         Syntax    @NOW
  6280.  
  6281.         Remarks   This function reads  the system clock and returns a combined
  6282.                   date and  time number for  the current date  and time.   The
  6283.                   integer part of the result will  be the date number for  the
  6284.                   current date, and the fractional  part of the result will be
  6285.                   the time number for the current time.
  6286.  
  6287.  
  6288.         ---------------------------------------------------------------------
  6289.         @NPV                                                         Financial
  6290.         ---------------------------------------------------------------------
  6291.         Function  Returns the  net present  value of a  series of  future cash
  6292.         flows.
  6293.  
  6294.         Syntax    @NPV(int,range)
  6295.                   where  int is  a number,  a  cell address,  or a  calculated
  6296.                   value, and range is a range of cells, named or otherwise.
  6297.  
  6298.         Remarks   This function calculates  the net present value of  a series
  6299.                   of future cash flows in  range, given the discount rate int.
  6300.                   Each  of the  future  cash  flows are  brought  back to  the
  6301.                   present;  that is, each flow receives its equivalent present
  6302.                   value.
  6303.  
  6304.                   The period of the discount must agree with the period of the
  6305.                   cash flows.   That is, if the  cash flows are  yearly flows,
  6306.                   then the  discount rate must be  a yearly rate; if  the cash
  6307.                   flows are monthly,  then the discount rate must  be monthly.
  6308.                   Generally, yearly cash  flows will be accurate enough.  Even
  6309.                   if the  flows actually come  on a monthly basis,  summing up
  6310.                   those flows into  a single yearly flow will  only change the
  6311.                   answer by a small percentage.
  6312.  
  6313.                   @NPV assumes that the period between cash flows is constant.
  6314.                   @NPV  assumes  end-of-period-payments.    For  beginning-of-
  6315.                   period-payments, multiply the answer by (1+int).
  6316.  
  6317.  
  6318.  
  6319.         ---------------------------------------------------------------------
  6320.         @PI                                                       Trigonometry
  6321.         ---------------------------------------------------------------------
  6322.         Function  Returns the value of pi (3.14159...).
  6323.  
  6324.         Syntax    @PI
  6325.  
  6326.         Remarks   The  @PI   function  simply   returns  the   value  of   pi,
  6327.                   3.141592635...
  6328.  
  6329.         Example   Entering the formula 2*@PI*5.3 returns the circumference  of
  6330.                   a circle with a radius of 5.3, or 33.30088.
  6331.  
  6332.  
  6333.                                           92
  6334.  
  6335.  
  6336.  
  6337.  
  6338.  
  6339.  
  6340.  
  6341.  
  6342.         ---------------------------------------------------------------------
  6343.         @PMT                                                         Financial
  6344.         ---------------------------------------------------------------------
  6345.         Function  Returns the payment required to amortize a loan amount.
  6346.  
  6347.         Syntax    @PMT(prin,int,term)
  6348.                   where prin,  int, and term  are numbers, cell  addresses, or
  6349.                   calculated values.
  6350.  
  6351.         Remarks   This  function calculates the  periodic payment  required to
  6352.                   amortize a loan  amount, given the amount  of principal, the
  6353.                   periodic interest rate, and the number of payments.
  6354.  
  6355.                   prin is the  total amount of principal, int  is the periodic
  6356.                   interest rate,  and term  is the number  of payments  in the
  6357.                   loan.
  6358.  
  6359.                   The @PMT function assumes a fixed rate of interest.  It also
  6360.                   requires  (like all  of the  financial  functions) that  the
  6361.                   interest  and term  in the  argument are  expressed in  like
  6362.                   intervals;  that is,  a  monthly  term  requires  a  monthly
  6363.                   interest rate.
  6364.  
  6365.         Example   If you were looking at  a home that would require  a $75,000
  6366.                   loan,  at 10%  yearly  interest for  30  years (360  monthly
  6367.                   payments), how much would your monthly payment be?
  6368.  
  6369.                   =@PMT(75000,0.1/12,360) = $658.18.
  6370.  
  6371.  
  6372.  
  6373.  
  6374.  
  6375.  
  6376.  
  6377.  
  6378.  
  6379.  
  6380.  
  6381.  
  6382.  
  6383.  
  6384.  
  6385.  
  6386.  
  6387.  
  6388.  
  6389.  
  6390.  
  6391.  
  6392.  
  6393.  
  6394.  
  6395.  
  6396.  
  6397.  
  6398.  
  6399.                                           93
  6400.  
  6401.  
  6402.  
  6403.  
  6404.  
  6405.  
  6406.         ---------------------------------------------------------------------
  6407.         @POINTER                                                          Data
  6408.         ---------------------------------------------------------------------
  6409.         Function  Returns information about the current cell.
  6410.  
  6411.         Syntax    @POINTER(attribute)
  6412.                   where  attribute  is  a  string  in  quotations  or  a  cell
  6413.                   reference.
  6414.  
  6415.         Remarks   This function returns various types of information about the
  6416.                   cell which the cell pointer  is currently in.  This function
  6417.                   is  intended  for  use in  application  programs  which need
  6418.                   information about  the current  cell.   attribute determines
  6419.                   what  information  is  returned,  and  must be  one  of  the
  6420.                   following strings;  "address", "col",  "contents", "format",
  6421.                   "prefix", "protect", "row", or "type".
  6422.  
  6423.         Example   attribute      @POINTER returns
  6424.                   "address"      the name of the current cell (for example B5)
  6425.  
  6426.                   "col"          the column number of the current cell (1 thru
  6427.                                  256)
  6428.  
  6429.                   "contents"     the contents of the current cell
  6430.  
  6431.                   "format"       the formatting of the current cell
  6432.                                  0 Default
  6433.                                  1 Fixed
  6434.                                  2 Currency
  6435.                                  3 Percent
  6436.                                  4 Scientific
  6437.                                  5 Hidden
  6438.                                  6 Text
  6439.                                  7 Fixed with commas
  6440.                                  8 Currency with commas
  6441.                                  9 Percent with commas
  6442.                                  10 dd-mmm-yy
  6443.                                  11 dd-mmm
  6444.                                  12 mmm-yy
  6445.                                  13 mm/dd/yy
  6446.                                  14 Month DD, YYYY
  6447.                                  15 HH:MM AM/PM
  6448.                                  16 HH:MM Military
  6449.                                  17 General
  6450.  
  6451.                   "prefix"       the  justification character  of the  current
  6452.                                  cell
  6453.                                  ' if left justified
  6454.                                  " if right justified
  6455.                                  ^ if centered
  6456.                                  blank if the cell doesn't contain text
  6457.  
  6458.                   "protect"      the protection status of the current cell
  6459.                                  0 = Not protected, 1 = Protected
  6460.  
  6461.                   "row"          the row number of the current cell (1 through
  6462.                                  4096)
  6463.  
  6464.  
  6465.                                           94
  6466.  
  6467.  
  6468.  
  6469.  
  6470.  
  6471.  
  6472.                   "type"         the type of data in the current cell
  6473.                                  BLANK,   FORMAT,   NUMBER,   TEXT,   FORMULA,
  6474.                                  TXTFORM, ERROR
  6475.  
  6476.  
  6477.  
  6478.  
  6479.         ---------------------------------------------------------------------
  6480.         @PROPER                                                         String
  6481.         ---------------------------------------------------------------------
  6482.         Function  Capitalizes the first letter of each word in a text string.
  6483.  
  6484.         Syntax    @PROPER(string)
  6485.                   where string is a string in quotations, or a cell address.
  6486.  
  6487.         Remarks   This function converts  the first letter of words  in string
  6488.                   to uppercase.
  6489.  
  6490.                   @PROPER  will only  recognize words  that  are separated  by
  6491.                   spaces, or other non alpha characters.
  6492.  
  6493.         Example   =@PROPER("this is a test") = This Is A Test
  6494.  
  6495.                   =@PROPER("mid-size") = Mid-Size
  6496.  
  6497.                   since the dash is a non alpha character.
  6498.  
  6499.  
  6500.  
  6501.         ---------------------------------------------------------------------
  6502.         @PV                                                          Financial
  6503.         ---------------------------------------------------------------------
  6504.         Function  Returns the present value of an annuity.
  6505.  
  6506.         Syntax    @PV(pmt,int,term)
  6507.                   where pmt,  int, and  term are  numbers, cell  addresses, or
  6508.                   calculated values.
  6509.  
  6510.         Remarks   This  function calculates the  present value of  an annuity,
  6511.                   given  the periodic payment, the periodic interest rate, and
  6512.                   the number of periods.
  6513.  
  6514.                   pmt is the  payment per period, int is the interest rate per
  6515.                   period, and term is the total number of payments.
  6516.  
  6517.                   The @PV function  does precisely the same thing  as the @NPV
  6518.                   function, except that  all payments are equal.   Thus, it is
  6519.                   only necessary  to enter the  amount once, rather than  as a
  6520.                   series of values.
  6521.  
  6522.                   The interest rate and term must agree; monthly payments must
  6523.                   be accompanied by a monthly term.
  6524.  
  6525.                   @PV  assumes  end-of-period-payments.     For  beginning-of-
  6526.                   period-payments, multiply the answer by (1+int).
  6527.  
  6528.         Example   To calculate  the present value  of an annuity in  which the
  6529.  
  6530.  
  6531.                                           95
  6532.  
  6533.  
  6534.  
  6535.  
  6536.  
  6537.  
  6538.                   payments are made monthly for  36 months, the interest  rate
  6539.                   is  10% per  year,  and  the payments  are  $400, enter  the
  6540.                   formula:
  6541.  
  6542.                   =@PV(400,0.1/12,36)
  6543.  
  6544.                   InstaCalc returns the value $12,396.42.
  6545.  
  6546.  
  6547.  
  6548.         ---------------------------------------------------------------------
  6549.         @QUARTER                                                     Date/Time
  6550.         ---------------------------------------------------------------------
  6551.         Function  The Quarter Function
  6552.  
  6553.         Syntax    @QUARTER(date number)
  6554.                   where  date number is a  number, cell address, or calculated
  6555.                   value.
  6556.  
  6557.         Remarks   This function returns the number  of the quarter of the year
  6558.                   (1 to  4) of  date number.   The  quarters  are: Quarter  1,
  6559.                   January  1 to  March  31; Quarter  2, April  1  to June  30;
  6560.                   Quarter 3, July 1 to September 30;  and Quarter 4, October 1
  6561.                   to December 31.
  6562.  
  6563.         Example   If cell A1 contains the date number of Feb. 1, 1989 (32540),
  6564.                   then
  6565.  
  6566.                   =@QUARTER(A1) = 1 (the first quarter)
  6567.  
  6568.  
  6569.  
  6570.  
  6571.         ---------------------------------------------------------------------
  6572.         @RADIANS                                                  Trigonometry
  6573.         ---------------------------------------------------------------------
  6574.         Function  Converts degrees to radians.
  6575.  
  6576.         Syntax    @RADIANS(x)
  6577.                   where x is a number, a cell address,  or a calculated value.
  6578.  
  6579.         Remarks   This function converts the angle x from degrees to radians.
  6580.  
  6581.                   Since InstaCalc's trigonometry  functions require angles  to
  6582.                   be expressed in radians, the @RADIANS function is useful for
  6583.                   making this conversion.
  6584.  
  6585.         Example   =@RADIANS(180) = 3.14159
  6586.                   =@RADIANS(45) = 0.7854
  6587.  
  6588.  
  6589.  
  6590.  
  6591.  
  6592.  
  6593.  
  6594.  
  6595.  
  6596.  
  6597.                                           96
  6598.  
  6599.  
  6600.  
  6601.  
  6602.  
  6603.  
  6604.         ---------------------------------------------------------------------
  6605.         @RAND                                                     Mathematical
  6606.         ---------------------------------------------------------------------
  6607.         Function  Returns a uniformly distributed random number.
  6608.  
  6609.         Syntax    @RAND
  6610.  
  6611.         Remarks   This function  generates a  random number  which is  greater
  6612.                   than or equal  to zero and is  less than one.  The  value of
  6613.                   @RAND will change to a new  random value each time the  cell
  6614.                   (not the Worksheet) is recalculated.  
  6615.  
  6616.                   If you  want the numbers  to fall within a  specified range,
  6617.                   multiply the @RAND result by the difference between the high
  6618.                   and low values in a range; then add this result to the lower
  6619.                   value in the range.
  6620.  
  6621.         Example   If you want to generate  a random number which falls between
  6622.                   20 and 25, then use
  6623.  
  6624.                   20+(5*@RAND)
  6625.  
  6626.  
  6627.  
  6628.         ---------------------------------------------------------------------
  6629.         @RATE                                                        Financial
  6630.         ---------------------------------------------------------------------
  6631.         Function  Returns the interest rate at which a present value will grow
  6632.                   to a future value.
  6633.  
  6634.         Syntax    @RATE(pv,fv,term)
  6635.                   where  pv,  fv, and  term  are numbers,  cell  addresses, or
  6636.                   calculated values.
  6637.  
  6638.         Remarks   This  function returns the interest  rate at which a present
  6639.                   value  will grow  into a  future  value during  a number  of
  6640.                   periods.  pv  is the present value amount  of an investment,
  6641.                   fv is the future value amount of the investment, and term is
  6642.                   the number of periods.
  6643.  
  6644.                   The periods are assumed to be regular intervals.  Converting
  6645.                   the compound growth  rate on a yearly basis,  given that the
  6646.                   term is expressed in months, simply requires that the answer
  6647.                   be multiplied by 12.
  6648.  
  6649.         Example   If  you want to  calculate the  periodic interest  rate that
  6650.                   will be required  to make an investment of  $1,000 grow into
  6651.                   $1,750 in five years,
  6652.  
  6653.                   =@RATE(1000,1750,5) = 0.1184 (or 11.84%)
  6654.  
  6655.  
  6656.  
  6657.  
  6658.  
  6659.  
  6660.  
  6661.  
  6662.  
  6663.                                           97
  6664.  
  6665.  
  6666.  
  6667.  
  6668.  
  6669.  
  6670.         ---------------------------------------------------------------------
  6671.         @REPEAT                                                         String
  6672.         ---------------------------------------------------------------------
  6673.         Function  Repeats text a given number of times.
  6674.  
  6675.         Syntax    @REPEAT(string,n)
  6676.                   where string  is a string  in quotations or a  cell address;
  6677.                   and n is a number, cell address, or calculated value.
  6678.  
  6679.         Remarks   This function returns string repeated n times.
  6680.  
  6681.         Example   =@REPEAT("abc",3) = abcabcabc
  6682.                   =@REPEAT("-",15) = ---------------
  6683.  
  6684.  
  6685.  
  6686.         ---------------------------------------------------------------------
  6687.         @REPLACE                                                        String
  6688.         ---------------------------------------------------------------------
  6689.         Function  Replaces a substring in a string with a new string.
  6690.  
  6691.         Syntax    @REPLACE(string,start,n,new string)
  6692.                   where string and  new string  are strings  in quotations  or
  6693.                   cell addresses; and start and n are numbers, cell addresses,
  6694.                   or calculated values.
  6695.  
  6696.         Remarks   This function removes  n characters from string  at position
  6697.                   start,   and  inserts  new  string  at  the  same  position.
  6698.                   @REPLACE not only  allows replacement of  a string; it  also
  6699.                   serves as an insert  or a delete function.   If n is set  to
  6700.                   zero, this is simply  an insert function.  If  new string is
  6701.                   empty, this serves as a delete function.
  6702.  
  6703.         Example   If A1 contains the string This is a test, then
  6704.  
  6705.                   =@REPLACE(A1,11,4,"game") = This is a game
  6706.                   =@REPLACE(A1,11,0," game") = This is a game test
  6707.                   =@REPLACE(A1,6,5,"") = This test
  6708.  
  6709.  
  6710.         ---------------------------------------------------------------------
  6711.         @RIGHT                                                          String
  6712.         ---------------------------------------------------------------------
  6713.         Function  Returns the right part of a text string.
  6714.  
  6715.         Syntax    @RIGHT(string,n)
  6716.                   where string  is a string  in quotations or a  cell address,
  6717.                   and n is a number, cell address, or calculated value. 
  6718.  
  6719.         Remarks   This function extracts and returns n characters from the end
  6720.                   of string.  If n is greater than the number of characters in
  6721.                   string, then the entire string is returned.
  6722.  
  6723.         See Also  @LEFT, @MID.
  6724.  
  6725.         Example   Column A  contains a  list of customer  phone numbers.   You
  6726.                   want  to create  customer  numbers by  using  the last  four
  6727.  
  6728.  
  6729.                                           98
  6730.  
  6731.  
  6732.  
  6733.  
  6734.  
  6735.  
  6736.                   digits of the telephone number.  Just  use =@RIGHT(A1,4) for
  6737.                   the first number.   If the  telephone number were  (208)882-
  6738.                   8656, InstaCalc would return the string 8656.
  6739.  
  6740.                   =@RIGHT("this is a test",8) = s a test
  6741.  
  6742.  
  6743.         ---------------------------------------------------------------------
  6744.         @ROUND                                                    Mathematical
  6745.         ---------------------------------------------------------------------
  6746.         Function  Rounds a value to a given number of decimal places.
  6747.  
  6748.         Syntax    @ROUND(x,n)
  6749.                   where x and  n are  numbers, cell  addresses, or  calculated
  6750.                   values.
  6751.  
  6752.         Remarks   This function returns the value of x rounded to n places.
  6753.  
  6754.                   n can  be either positive  or negative; when n  is negative,
  6755.                   the  program rounds  n digits  to  the left  of the  decimal
  6756.                   point.  When n is positive,  the program rounds n digits  to
  6757.                   the right of the decimal.
  6758.  
  6759.         Example   =@ROUND(123.456,-2) = 100
  6760.                   =@ROUND(123.456,-1) = 120
  6761.                   =@ROUND(123.456,2) = 123.46
  6762.                   =@ROUND(123.456,0) = 123
  6763.  
  6764.  
  6765.  
  6766.         ---------------------------------------------------------------------
  6767.         @ROWS                                                             Data
  6768.         ---------------------------------------------------------------------
  6769.         Function  Returns the number of rows in a range.
  6770.  
  6771.         Syntax    @ROWS(range)
  6772.  
  6773.         Remarks   This function returns the number of rows in range.  @ROWS is
  6774.                   particularly useful when used with named ranges.
  6775.  
  6776.         Example   If the range A1..B10 is named COST then
  6777.  
  6778.                   =@ROWS(COST) = 10
  6779.  
  6780.  
  6781.  
  6782.         ---------------------------------------------------------------------
  6783.         @SAMPSTD                                                   Statistical
  6784.         ---------------------------------------------------------------------
  6785.         Function  Returns the standard deviation of a list of sample values.
  6786.  
  6787.         Syntax    @SAMPSTD(list)
  6788.                   where list  is a list  of values separated  by commas, or  a
  6789.                   range containing values, or some combination of the two.
  6790.  
  6791.         Remarks   This  function  calculates  the  standard  deviation  of the
  6792.                   values in list.
  6793.  
  6794.  
  6795.                                           99
  6796.  
  6797.  
  6798.  
  6799.  
  6800.  
  6801.  
  6802.                   Standard deviation is a measure  of dispersion; that is,  it
  6803.                   measures the degree to which  each value in list varies from
  6804.                   the mean of the values in list.
  6805.  
  6806.                   @SAMPSTD will completely ignore all items  in list which are
  6807.                   text or blank.   This means  that if a  text string is  in a
  6808.                   range in list, you do not have to worry about it  being used
  6809.                   incorrectly in the calculation.
  6810.  
  6811.                   If you want to calculate the standard deviation of an entire
  6812.                   population rather than  a sample of  a population, you  must
  6813.                   use @STD.
  6814.  
  6815.         Example   =@SAMPSTD(0,1,2,3,4,5,6,7,8,9)  = 3.028
  6816.  
  6817.                   Similarly,  if cells A1  to A10 contained  those values, the
  6818.                   formula
  6819.  
  6820.                   =@SAMPSTD(A1..A10)  would return the value 3.028
  6821.  
  6822.  
  6823.         ---------------------------------------------------------------------
  6824.         @SAMPVAR                                                   Statistical
  6825.         ---------------------------------------------------------------------
  6826.         Function  Returns the variance of a list of sample values.
  6827.  
  6828.         Syntax    @SAMPVAR(list)
  6829.                   where list  is a list  of values  separated by commas,  or a
  6830.                   range containing values, or some combination of the two.
  6831.  
  6832.         Remarks   This function returns  the variance of the  values contained
  6833.                   in list.
  6834.  
  6835.                   The  @SAMPVAR function  measures dispersion,  much like  the
  6836.                   @SAMPSTD function.  In fact,  the variance of list is simply
  6837.                   the square of its standard deviation.
  6838.  
  6839.                   The  @SAMPVAR function will  completely ignore all  items in
  6840.                   the list which are text or blank.  This means that if a text
  6841.                   string is in a range in list, you do not have to worry about
  6842.                   it being used incorrectly in the calculation.
  6843.  
  6844.                   If   you  want  to  calculate  the  variance  of  an  entire
  6845.                   population rather than  a sample of  a population, you  must
  6846.                   use @VAR.
  6847.  
  6848.         Example   =@SAMPVAR(0,1,2,3,4,5,6,7,8,9) = 9.1666
  6849.  
  6850.                   Similarly, if cells A1 to A10 contain those values
  6851.  
  6852.                   =@SAMPVAR(A1..A10) = 9.1666
  6853.  
  6854.  
  6855.  
  6856.  
  6857.  
  6858.  
  6859.  
  6860.  
  6861.                                          100
  6862.  
  6863.  
  6864.  
  6865.  
  6866.  
  6867.  
  6868.         ---------------------------------------------------------------------
  6869.         @SECOND                                                      Date/Time
  6870.         ---------------------------------------------------------------------
  6871.         Function  Returns the second of a time number.
  6872.  
  6873.         Syntax    @SECOND(time number)
  6874.                   where  time  number  is  a  number, a  cell  address,  or  a
  6875.                   calculated value.
  6876.  
  6877.         Remarks   This  function returns the  value in seconds  (between 0 and
  6878.                   59) of time number.
  6879.  
  6880.                   time number  should be a  value between 0 and  1.  InstaCalc
  6881.                   will not ignore mixed numbers; rather,  it will extract only
  6882.                   the fractional  part.  The argument may be either a value, a
  6883.                   cell reference to a  value, or a cell reference to a formula
  6884.                   which calculates a value.
  6885.  
  6886.                   @SECOND is used whenever it is important to extract only the
  6887.                   second portion of a time value.  This function is most often
  6888.                   used in  conjunction with other time functions, such as @NOW
  6889.                   or @TIME.
  6890.  
  6891.         Example   If the current time were 10:43.34, then
  6892.  
  6893.                   =@SECOND(@NOW) = 34
  6894.  
  6895.                   =@SECOND(@TIME(10,20,30)) = 30
  6896.  
  6897.  
  6898.         ---------------------------------------------------------------------
  6899.         @SIGN                                                     Mathematical
  6900.         ---------------------------------------------------------------------
  6901.         Function  Returns the sign of a number.
  6902.  
  6903.         Syntax    @SIGN(x)
  6904.                   where x is a number, a cell address, or a calculated value.
  6905.  
  6906.         Remarks   This function returns  the sign of its x.  If x is negative,
  6907.                   the  function  returns -1.    If  x positive,  the  function
  6908.                   returns 1.  If x is 0, the function returns 0.
  6909.  
  6910.         Example   =@SIGN(23.4) = 1
  6911.                   =@SIGN(-13.9) = -1
  6912.                   =@SIGN(0) = 0
  6913.                   =@SIGN(@PI) = 1
  6914.  
  6915.  
  6916.         ---------------------------------------------------------------------
  6917.         @SIN                                                      Trigonometry
  6918.         ---------------------------------------------------------------------
  6919.         Function  Returns the sine of an angle.
  6920.  
  6921.         Syntax    @SIN(x)
  6922.                   where x is a number, a cell address, or a calculated value.
  6923.  
  6924.         Remarks   This function returns the sine of the angle x.  x must be in
  6925.  
  6926.  
  6927.                                          101
  6928.  
  6929.  
  6930.  
  6931.  
  6932.  
  6933.  
  6934.                   radians.   If x  is in degrees,  then the  @RADIANS function
  6935.                   must be used to convert x to radians.  The value returned by
  6936.                   the @SIN function will always lie between -1 and 1.
  6937.  
  6938.         Example   =@SIN(3) = 0.1411
  6939.                   =@SIN(@PI) = 0
  6940.                   =@SIN(@RADIANS(90)) = 1
  6941.  
  6942.  
  6943.  
  6944.         ---------------------------------------------------------------------
  6945.         @SINH                                                     Trigonometry
  6946.         ---------------------------------------------------------------------
  6947.         Function  Returns the hyperbolic sine of an angle.
  6948.  
  6949.         Syntax    @SINH(x)
  6950.                   where x is a number, a cell address, or a calculated value.
  6951.  
  6952.         Remarks   This function returns the hyperbolic sine of the angle x.  x
  6953.                   must be in radians.   If x is in degrees,  then the @RADIANS
  6954.                   function must be used to convert x to radians.
  6955.  
  6956.         Example   =@SINH(3) = 10.018
  6957.                   =@SINH(@PI) = 11.549
  6958.  
  6959.  
  6960.  
  6961.         ---------------------------------------------------------------------
  6962.         @SLN                                                         Financial
  6963.         ---------------------------------------------------------------------
  6964.         Function  Returns the  amount of  depreciation of  an asset  using the
  6965.                   straight line method.
  6966.  
  6967.         Syntax    @SLN(cost,salvage,life)
  6968.                   where cost, salvage,  and life are numbers,  cell addresses,
  6969.                   or calculated values.
  6970.  
  6971.         Remarks   This  function  calculates   and  returns   the  amount   of
  6972.                   depreciation of an  asset using the Straight-Line  method of
  6973.                   accelerated depreciation.   cost is  the cost of  the asset,
  6974.                   salvage  is the  salvage  value  of the  asset  after it  is
  6975.                   totally  depreciated, and  life  is the  useful life  of the
  6976.                   asset.  
  6977.  
  6978.  
  6979.         ---------------------------------------------------------------------
  6980.         @SQRT                                                     Mathematical
  6981.         ---------------------------------------------------------------------
  6982.         Function  Returns the square root of a value.
  6983.  
  6984.         Syntax    @SQRT(x)
  6985.                   where x is a number, a cell address, or a calculated value.
  6986.  
  6987.         Remarks   This function  returns the  square root  of x.    x must  be
  6988.                   positive,  since  any  two negative  numbers  multiply  to a
  6989.                   positive number.
  6990.  
  6991.  
  6992.  
  6993.                                          102
  6994.  
  6995.  
  6996.  
  6997.  
  6998.  
  6999.  
  7000.                   Since  @SQRT will not  work with  negative numbers,  it will
  7001.                   often  be necessary to  convert negative values  to positive
  7002.                   ones.   To do this,  simply combine the @SQRT  function with
  7003.                   the @ABS function.
  7004.  
  7005.         Example   =@SQRT(16) = 4
  7006.                   =@SQRT(-9) = ERROR
  7007.                   =@SQRT(@ABS(-9)) = 3
  7008.  
  7009.  
  7010.  
  7011.         ---------------------------------------------------------------------
  7012.         @STD                                                       Statistical
  7013.         ---------------------------------------------------------------------
  7014.         Function  Returns the standard deviation of a list of values.
  7015.  
  7016.         Syntax    @STD(list)
  7017.                   where  list is a  list of values  separated by  commas, or a
  7018.                   range containing values, or some combination of the two.
  7019.  
  7020.         Remarks   This  function  calculates  the  standard  deviation  of the
  7021.                   values in list.
  7022.  
  7023.                   Standard  deviation is a measure of  dispersion; that is, it
  7024.                   measures the degree to which  each value in list varies from
  7025.                   the mean of the values in list.
  7026.  
  7027.                   @STD will completely ignore all items in list which are text
  7028.                   or blank.  This means that if a text string is in a range in
  7029.                   list,  you  do  not  have  to  worry  about  it  being  used
  7030.                   incorrectly in the calculation.
  7031.  
  7032.                   @STD   calculates  the  standard   deviation  of  an  entire
  7033.                   population.  If you want to calculate the standard deviation
  7034.                   of  a  sample   of  a  population  rather  than  the  entire
  7035.                   population, you must use @SAMPSTD.
  7036.  
  7037.         Example   =@STD(0,1,2,3,4,5,6,7,8,9)  = 2.87
  7038.  
  7039.                   Similarly, if  cells A1 to  A10 contained those  values, the
  7040.                   formula
  7041.  
  7042.                   =@STD(A1..A10)  would return the value 2.87
  7043.  
  7044.  
  7045.         ---------------------------------------------------------------------
  7046.         @STRING                                                         String
  7047.         ---------------------------------------------------------------------
  7048.         Function  Converts a value to a string.
  7049.  
  7050.         Syntax    @STRING(x,n)
  7051.                   where  x and  n are  values,  cell addresses,  or calculated
  7052.                   values.
  7053.  
  7054.         Remarks   This function converts x to a string with n decimal places.
  7055.  
  7056.                   To perform  string operations on values, you must use either
  7057.  
  7058.  
  7059.                                          103
  7060.  
  7061.  
  7062.  
  7063.  
  7064.  
  7065.  
  7066.                   the @STRING or  @FORMAT functions to convert the  value to a
  7067.                   string.
  7068.  
  7069.         Example   If cell A1 contains the function @PI, then
  7070.  
  7071.                   =@STRING(A1,3)
  7072.  
  7073.                   will return the string 3.142
  7074.  
  7075.  
  7076.  
  7077.         ---------------------------------------------------------------------
  7078.         @SUM                                                       Statistical
  7079.         ---------------------------------------------------------------------
  7080.         Function  Returns the sum of a list of values.
  7081.  
  7082.         Syntax    @SUM(list)
  7083.                   where  list is a  list of values  separated by  commas, or a
  7084.                   range containing values, or some combination of the two.
  7085.  
  7086.         Remarks   This function adds up all of the values contained in list.
  7087.  
  7088.                   @SUM will completely ignore all items in list which are text
  7089.                   or blank.  This means that if a text string is in a range in
  7090.                   list,  you  do  not  have  to  worry  about  it  being  used
  7091.                   incorrectly in the calculation.
  7092.  
  7093.         Example   =@SUM(0,1,2,3,4,5,6,7,8,9)  = 45
  7094.  
  7095.                   Similarly, if cells A1  to A10 contained those same  values,
  7096.                   entering the formula
  7097.  
  7098.                   =@SUM(A1..A10)  would return the value 45.
  7099.  
  7100.  
  7101.  
  7102.         ---------------------------------------------------------------------
  7103.         @SYD                                                         Financial
  7104.         ---------------------------------------------------------------------
  7105.         Function  Returns the amount of depreciation of an asset using the Sum
  7106.                   of the Years' Digits method.
  7107.  
  7108.         Syntax    @SYD(cost,salvage,life,period)
  7109.                   where  cost, salvage,  life, and  period  are numbers,  cell
  7110.                   addresses, or calculated values.
  7111.  
  7112.         Remarks   This  function calculates the  amount of depreciation  of an
  7113.                   asset   using   the   Sum-of-the-Years'-Digits   method   of
  7114.                   accelerated depreciation.
  7115.  
  7116.                   cost is the cost of the asset, salvage  is the salvage value
  7117.                   of the  asset after it  is totally depreciated, life  is the
  7118.                   useful life  of the asset,  and period is the  period within
  7119.                   that life in which the depreciation is being calculated.
  7120.  
  7121.         Example   Your company purchased  a piece of  equipment last year  for
  7122.                   $40,000.  Its scrap value has been determined to be $11,000,
  7123.  
  7124.  
  7125.                                          104
  7126.  
  7127.  
  7128.  
  7129.  
  7130.  
  7131.  
  7132.                   and its useful  life is seven years.   How much depreciation
  7133.                   should be assigned to it in this, its second  year of useful
  7134.                   life?
  7135.  
  7136.                   =@SYD(40000,11000,7,2) = $6,214.29
  7137.  
  7138.  
  7139.         ---------------------------------------------------------------------
  7140.         @TAN                                                      Trigonometry
  7141.         ---------------------------------------------------------------------
  7142.         Function  Returns the tangent of an angle.
  7143.  
  7144.         Syntax    @TAN(x)
  7145.                   where x is a number, a cell address, or a calculated value.
  7146.  
  7147.         Remarks   This function returns the tangent of the angle x.  x must be
  7148.                   expressed in radians.  If x is in degrees, then the @RADIANS
  7149.                   function must be used to convert x to radians.
  7150.  
  7151.         Example   =@TAN(3)  = -0.1425.
  7152.                   =@TAN(7) = 0.8714.
  7153.  
  7154.  
  7155.  
  7156.         ---------------------------------------------------------------------
  7157.         @TANH                                                     Trigonometry
  7158.         ---------------------------------------------------------------------
  7159.         Function  Returns the hyperbolic tangent of an angle.
  7160.  
  7161.         Syntax    @TANH(x)
  7162.                   where x is a number, a cell address, or a calculated value.
  7163.  
  7164.         Remarks   This function returns the hyperbolic tangent of the angle x.
  7165.                   x must be  expressed in radians.   If x is in  degrees, then
  7166.                   the @RADIANS function must be used to convert x to radians.
  7167.  
  7168.         Example   =@TANH(3) = 0.99505
  7169.                   =@TANH(0) = 0
  7170.  
  7171.  
  7172.  
  7173.         ---------------------------------------------------------------------
  7174.         @TERM                                                        Financial
  7175.         ---------------------------------------------------------------------
  7176.         Function  Returns the number  of periods for an investment  to reach a
  7177.                   future value.
  7178.  
  7179.         Syntax    @TERM(pmt,int,fv)
  7180.                   where  pmt, int,  and  fv are  numbers,  cell addresses,  or
  7181.                   calculated values.
  7182.  
  7183.         Remarks   This function returns the number  of terms needed to reach a
  7184.                   specified  future value,  given an  interest  rate (rate  of
  7185.                   return)  and the  value of  equal  payment to  be made  each
  7186.                   period.
  7187.  
  7188.                   pmt is the amount of the equal periodic payments, int is the
  7189.  
  7190.  
  7191.                                          105
  7192.  
  7193.  
  7194.  
  7195.  
  7196.  
  7197.  
  7198.                   interest  rate or  expected rate  of return,  and fv  is the
  7199.                   future value to be reached.
  7200.  
  7201.                   Many investments (including  many people's savings accounts)
  7202.                   take  a series of equal payments.   To determine how long it
  7203.                   will take  to accumulate a  specific future  value, use  the
  7204.                   @TERM function.
  7205.  
  7206.         Example   You deposit  $500 per month  in your savings  account, which
  7207.                   earns 7% annually.  You need $9,000 to make the down payment
  7208.                   on  your first  home.    How many  months  will  it take  to
  7209.                   accumulate that much?
  7210.  
  7211.                   First, convert the yearly interest to months.  Divide .07 by
  7212.                   12; monthly interest is .00583.  Enter the formula:
  7213.  
  7214.                   =@TERM(500,0.00583,9000)
  7215.  
  7216.                   The formula  returns  the number  of months  to achieve  the
  7217.                   goal, 17.
  7218.  
  7219.  
  7220.         ---------------------------------------------------------------------
  7221.         @TIME                                                        Date/Time
  7222.         ---------------------------------------------------------------------
  7223.         Function  Returns a time number for a time.
  7224.  
  7225.         Syntax    @TIME(hour,min,sec)
  7226.                   where  hour, min,  and sec are  numbers, cell  addresses, or
  7227.                   calculated values.
  7228.  
  7229.         Remarks   This function  returns a time  number between 0 and  1, from
  7230.                   hour, min, and sec.
  7231.  
  7232.                   hour is the hour of the  day (between 0 and 23), min is  the
  7233.                   minute of  the  hour (between  0  and 59),  and  sec is  the
  7234.                   seconds of the minute (between 0 and 59).
  7235.  
  7236.                   It is  usually necessary to format the cell containing @TIME
  7237.                   using the /Cell Format Date command.
  7238.  
  7239.         Example   If  cell A4 contains the following  formula and is formatted
  7240.                   in a time format, then
  7241.  
  7242.                   =@TIME(15,12,25)
  7243.  
  7244.                   in cell A4 would return the time: 3:12:25
  7245.  
  7246.  
  7247.         ---------------------------------------------------------------------
  7248.         @TODAY                                                       Date/Time
  7249.         ---------------------------------------------------------------------
  7250.         Function  Returns the date number of the current date.
  7251.  
  7252.         Syntax    @TODAY
  7253.  
  7254.         Remarks   This function  reads the system  clock and returns  the date
  7255.  
  7256.  
  7257.                                          106
  7258.  
  7259.  
  7260.  
  7261.  
  7262.  
  7263.  
  7264.                   number for the current date.  
  7265.  
  7266.  
  7267.  
  7268.         ---------------------------------------------------------------------
  7269.         @TRIM                                                           String
  7270.         ---------------------------------------------------------------------
  7271.         Function  Trims all extra spaces out of a text string.
  7272.  
  7273.         Syntax    @TRIM(string)
  7274.                   where string is a string in quotations, or a cell address.
  7275.  
  7276.         Remarks   This  function strips  all extra  spaces from  string.   The
  7277.                   result contains only single spaces between words.
  7278.  
  7279.                   Often, importing  ASCII  files  will  produce  strings  with
  7280.                   extraneous spaces.  The problem is overcome with @TRIM.
  7281.  
  7282.         Example   The imported string in A1 reads:
  7283.  
  7284.                      This    is a           test.
  7285.  
  7286.                   Entering the formula =@TRIM(A1) produces the new string:
  7287.  
  7288.                   This is a test.
  7289.  
  7290.  
  7291.  
  7292.         ---------------------------------------------------------------------
  7293.         @TRUE                                                          Logical
  7294.         ---------------------------------------------------------------------
  7295.         Function  Returns the value TRUE (1).
  7296.  
  7297.         Syntax    @TRUE
  7298.  
  7299.         Remarks   This function returns the value 1 (TRUE).
  7300.  
  7301.  
  7302.  
  7303.  
  7304.  
  7305.  
  7306.  
  7307.  
  7308.  
  7309.  
  7310.  
  7311.  
  7312.  
  7313.  
  7314.  
  7315.  
  7316.  
  7317.  
  7318.  
  7319.  
  7320.  
  7321.  
  7322.  
  7323.                                          107
  7324.  
  7325.  
  7326.  
  7327.  
  7328.  
  7329.  
  7330.         ---------------------------------------------------------------------
  7331.         @UPPER                                                          String
  7332.         ---------------------------------------------------------------------
  7333.         Function  Converts all the characters of a text string to uppercase.
  7334.  
  7335.         Syntax    @UPPER(string)
  7336.                   where string is a string in quotations, or a cell address.
  7337.  
  7338.         Remarks   The @UPPER function converts all of the characters in string
  7339.                   to uppercase.
  7340.  
  7341.         Example   If cell A1 contains the text "Instruction Manual"
  7342.  
  7343.                   =@UPPER(A1) = INSTRUCTION MANUAL
  7344.  
  7345.  
  7346.         ---------------------------------------------------------------------
  7347.         @VALUE                                                          String
  7348.         ---------------------------------------------------------------------
  7349.         Function  Returns the value that a text string looks like.
  7350.  
  7351.         Syntax    @VALUE(string)
  7352.                   where string is a string in quotations or a cell address.
  7353.  
  7354.         Remarks   This function converts string into  a value that can be used
  7355.                   in formulas, equations,  and other calculations.   @VALUE is
  7356.                   especially useful  for converting  mixed fractions  (such as
  7357.                   stock values) into numerical values.
  7358.  
  7359.         Example   If A1 contains the label, "4.34"
  7360.  
  7361.                   =@VALUE(A1) = 4.34
  7362.                   =@VALUE("3 1/4") = 3.25
  7363.  
  7364.  
  7365.         ---------------------------------------------------------------------
  7366.         @VAR                                                       Statistical
  7367.         ---------------------------------------------------------------------
  7368.         Function  Returns the variance of a list of values.
  7369.  
  7370.         Syntax    @VAR(list)
  7371.                   where list  is a list  of values separated  by commas, or  a
  7372.                   range containing values, or some combination of the two.
  7373.  
  7374.         Remarks   This function returns  the variance of the  values contained
  7375.                   in list.
  7376.  
  7377.                   The  @VAR function measures  dispersion, much like  the @STD
  7378.                   function.   In  fact, the  variance  of list  is simply  the
  7379.                   square of its standard deviation.
  7380.  
  7381.                   The  @VAR function will  completely ignore all  items in the
  7382.                   list which are  text or blank.   This means  that if a  text
  7383.                   string is in a range in list, you do not have to worry about
  7384.                   it being used incorrectly in the calculation.
  7385.  
  7386.                   @VAR calculates  the variance of  an entire population.   If
  7387.  
  7388.  
  7389.                                          108
  7390.  
  7391.  
  7392.  
  7393.  
  7394.  
  7395.  
  7396.                   you  want  to  calculate  the  variance of  a  sample  of  a
  7397.                   population rather than  the entire population, you  must use
  7398.                   @SAMPVAR.
  7399.  
  7400.         Example   =@VAR(0,1,2,3,4,5,6,7,8,9) = 8.25
  7401.  
  7402.                   Similarly, if cells A1 to A10 contain those values
  7403.  
  7404.                   =@VAR(A1..A10) = 8.25
  7405.  
  7406.  
  7407.  
  7408.  
  7409.         ---------------------------------------------------------------------
  7410.         @VLOOKUP                                                          Data
  7411.         ---------------------------------------------------------------------
  7412.         Function  Looks up an item in a vertical lookup table.
  7413.  
  7414.         Syntax    @VLOOKUP(x,range,col offset)
  7415.                   where range is a range of cells, named or otherwise; and col
  7416.                   offset is a number, cell address, or calculated value; and x
  7417.                   is a number, text, cell address, or calculated value.
  7418.  
  7419.         Remarks   This function looks up and retrieves a value or  text from a
  7420.                   vertical lookup  table.  range  is the range of  cells which
  7421.                   makes up the lookup table.
  7422.  
  7423.                   If x is text, @VLOOKUP will compare x with each cell  in the
  7424.                   left column of range, and if a match is found, will move col
  7425.                   offset columns from that cell,  and will return the value in
  7426.                   the resulting cell.  If x does not match any of the cells in
  7427.                   the  left  column of  range, then  @VLOOKUP will  return the
  7428.                   value ERROR.
  7429.  
  7430.                   If x  is a value  instead of text,  @VLOOKUP will  compare x
  7431.                   with each cell  in the left column of range until it finds a
  7432.                   cell which  is greater than or equal to  x.  This means that
  7433.                   the values in the  left column of range must be in ascending
  7434.                   order for @VLOOKUP  to work correctly.  If the  value in the
  7435.                   cell is  equal to x, @VLOOKUP will consider  it a match.  If
  7436.                   the cell is  greater than x,  @VLOOKUP will move  up to  the
  7437.                   previous  cell and consider it a match.  For example, if the
  7438.                   values in the  left column of range  are 100, 200,  300, and
  7439.                   400, and  the value of x  is 250, then @VLOOKUP  will search
  7440.                   until it reaches  300, and will then  move back and use  the
  7441.                   cell containing  200 as the  match.  When a  match is found,
  7442.                   @VLOOKUP will move  col offset columns  from that cell,  and
  7443.                   will return  the value  in  the resulting  cell.   If  x  is
  7444.                   smaller than  the first  cell in  the left  column, @VLOOKUP
  7445.                   will return the value ERROR. 
  7446.  
  7447.  
  7448.  
  7449.  
  7450.  
  7451.  
  7452.  
  7453.  
  7454.  
  7455.                                          109
  7456.  
  7457.  
  7458.  
  7459.  
  7460.  
  7461.  
  7462.         ---------------------------------------------------------------------
  7463.         @WEEKDAY                                                     Date/Time
  7464.         ---------------------------------------------------------------------
  7465.         Function  Returns the day of the week for a date number.
  7466.  
  7467.         Syntax    @WEEKDAY(date number)
  7468.                   where  date  number  is  a  number, a  cell  address,  or  a
  7469.                   calculated value.
  7470.  
  7471.         Remarks   This  function  returns  the  day of  the  week  (numbered 1
  7472.                   through 7,  with 1  being Sunday and  7 being  Saturday) for
  7473.                   date number.
  7474.  
  7475.         Example   Cell A1 contains the date number  (32540) that is equivalent
  7476.                   to the date 2/1/89.  Entering the formula 
  7477.  
  7478.                   =@WEEKDAY(A1) = 4, (Wednesday)
  7479.  
  7480.  
  7481.  
  7482.         ---------------------------------------------------------------------
  7483.         @YEAR                                                        Date/Time
  7484.         ---------------------------------------------------------------------
  7485.         Function  Returns the year of a date number.
  7486.  
  7487.         Syntax    @YEAR(date number)
  7488.                   where  date  number  is  a  number, a  cell  address,  or  a
  7489.                   calculated value.
  7490.  
  7491.         Remarks   This function returns the year of date number.  For years in
  7492.                   the 1900's, the final  2 digits are returned.   For the year
  7493.                   2000  @YEAR will  return the  value  100.   Again, the  date
  7494.                   number  is  usually  supplied  by  one  of  the  other  date
  7495.                   functions;  this function is  used to extract  the year from
  7496.                   one of those functions.
  7497.  
  7498.         Example   CURRENT YEAR   @YEAR(@NOW) returns
  7499.                   1980           80
  7500.                   1999           99
  7501.                   2000           100
  7502.                   2001           101
  7503.  
  7504.  
  7505.         ---------------------------------------------------------------------
  7506.         @@                                                                Data
  7507.         ---------------------------------------------------------------------
  7508.         Function  Returns data from a cell through an indirect reference.
  7509.  
  7510.         Syntax    @@(cellname)
  7511.                   where cellname is a string in quotations or a cell address
  7512.  
  7513.         Remarks   This function  will return  the contents of  the cell  named
  7514.                   cellname.
  7515.  
  7516.                   If cellname  is a  string which looks  like a  cell address,
  7517.                   then @@ will read and return the  contents of the cell named
  7518.                   cellname.  If cellname is a cell reference, then @@ will use
  7519.  
  7520.  
  7521.                                          110
  7522.  
  7523.  
  7524.  
  7525.  
  7526.  
  7527.  
  7528.                   the contents of cellname as the name of the cell to retrieve
  7529.                   data from.   @@ is  typically used in macros,  where you may
  7530.                   need   to   retrieve   the   contents   of   certain   cells
  7531.                   automatically.
  7532.  
  7533.         Example   If cell  B5 contains the  text Overdue and cell  A1 contains
  7534.                   the text 'B5, then
  7535.  
  7536.                   @@(A1)  and  @@("B5")
  7537.  
  7538.                   will both return the label Overdue
  7539.  
  7540.  
  7541.  
  7542.  
  7543.  
  7544.  
  7545.  
  7546.  
  7547.  
  7548.  
  7549.  
  7550.  
  7551.  
  7552.  
  7553.  
  7554.  
  7555.  
  7556.  
  7557.  
  7558.  
  7559.  
  7560.  
  7561.  
  7562.  
  7563.  
  7564.  
  7565.  
  7566.  
  7567.  
  7568.  
  7569.  
  7570.  
  7571.  
  7572.  
  7573.  
  7574.  
  7575.  
  7576.  
  7577.  
  7578.  
  7579.  
  7580.  
  7581.  
  7582.  
  7583.  
  7584.  
  7585.  
  7586.  
  7587.                                          111
  7588.  
  7589.  
  7590.  
  7591.  
  7592.  
  7593.  
  7594.         INSTACALC APPLICATIONS
  7595.  
  7596.         InstaCalc provides  a programming  environment which  you  can use  to
  7597.         create  any application, from a simple time-saving keystroke repeating
  7598.         routine to a fully customized business application.
  7599.  
  7600.         An InstaCalc application simply consists of a text file containing the
  7601.         commands which you would like InstaCalc to execute.  You may give your
  7602.         program files any  valid DOS name, but the extension must be .MAC (for
  7603.         example  MYPROG.MAC).  Your  program can consist  of keystroke macros,
  7604.         InstaCalc Command Environment (ICE) commands, or both.
  7605.  
  7606.         Macros    A  keystroke  macro  is  simply  a  sequence  of  keystrokes
  7607.                   following  the  apostrophe  character  '.    When  InstaCalc
  7608.                   encounters one of these keystroke sequences in your program,
  7609.                   it  simply treats  the keystrokes  as if  you typed  them in
  7610.                   yourself.  For example, if you place the line:
  7611.  
  7612.                   '/wic<Enter>
  7613.  
  7614.                   into   your  application   program,   then  InstaCalc   will
  7615.                   automatically insert two columns when it executes this line.
  7616.                   It does  this by  first typing the  / character  (which will
  7617.                   bring  up the  menu), then  W (for  WorkSheet), then  I (for
  7618.                   insert),  then C (for  column), and finally  the <Enter> key
  7619.                   (to complete the command).
  7620.  
  7621.         Commands  The   InstaCalc  Command  Environment  (ICE)  is  a  set  of
  7622.                   instructions  which  provides   flexible  I/O  capabilities,
  7623.                   numerous control  structures, printer  and  DOS access,  and
  7624.                   more.  In  fact, you may find  that the ICE commands  are so
  7625.                   versatile that many  of your application programs  will need
  7626.                   few if any keystroke macros.
  7627.  
  7628.  
  7629.  
  7630.         CREATING AN APPLICATION
  7631.  
  7632.         The easiest way to create a  keystroke macro is with InstaCalc's Macro
  7633.         Recorder.    To  begin  recording   a  macro,  you  simply  press  the
  7634.         <Ctrl><F10> key.  You then press the  key you want to assign the macro
  7635.         to, and begin typing the keys to  record.  When you are ready to  stop
  7636.         recording, just press the <Ctrl><F10> key  again.  Your macro will  be
  7637.         stored in a  file whose name corresponds  to the key you  assigned the
  7638.         macro to.   For example,  a macro assigned  to <Ctrl>T would  be named
  7639.         CTRLT.MAC.
  7640.  
  7641.         Later, when you press <Ctrl>T, InstaCalc will look for the application
  7642.         file CTRLT.MAC, and run it if it exists.  If it doesn't exist, then an
  7643.         error message  will pop up.   Applications or keystroke macros  can be
  7644.         assigned to just about any key which isn't already defined and used by
  7645.         InstaCalc.   For example,  you  can't redefine  the arrow  keys to  do
  7646.         something else,  but you can assign other keys to do the same thing as
  7647.         the arrow keys.  
  7648.  
  7649.         Applications may also be created with a text editor, just as you would
  7650.         write a program in  any programming language.  InstaCalc  applications
  7651.  
  7652.  
  7653.                                          112
  7654.  
  7655.  
  7656.  
  7657.  
  7658.  
  7659.  
  7660.         are not limited to simple keystroke macros.  InstaCalc supplies a rich
  7661.         programming  language  which   provides  flexible  I/O   capabilities,
  7662.         numerous  control  structures (If/Then/Else,  For/Next,  Repeat/Until,
  7663.         While/Endwhile,  etc), access to  DOS commands and  external programs,
  7664.         and more. 
  7665.  
  7666.         These applications can be written using either the simple editor which
  7667.         InstaCalc provides (/Macro  Edit), or outside  of InstaCalc with  your
  7668.         own text  editor.  You  may give your  application any valid  DOS name
  7669.         (the extension  must be  .MAC), including one  of the  keystroke names
  7670.         (such  as  ALTX.MAC).   This  allows  you  to run  extremely  powerful
  7671.         applications at the press of a key.  
  7672.  
  7673.         There are a number  of advantages to  having applications reside in  a
  7674.         file rather than in the worksheet itself.
  7675.  
  7676.         - The application  can load and save data files  without being written
  7677.         over by the incoming worksheet.
  7678.  
  7679.         -  You can create large libraries of applications and macros which can
  7680.         be used  in any  worksheet without having  to load the  entire library
  7681.         into memory each time.
  7682.  
  7683.         - Large  applications can be  broken into smaller parts,  and only the
  7684.         part which  is running  needs to  be in  memory.   This means you  can
  7685.         create  and run applications which  would normally require more memory
  7686.         than is available.
  7687.  
  7688.  
  7689.  
  7690.         RUNNING AN APPLICATION
  7691.  
  7692.         Once you have created your application program, you will probably want
  7693.         to  run it.   There  are  many ways  to run  an  InstaCalc application
  7694.         program which you have created.
  7695.  
  7696.         /Macro Run     You can run an application program from the menus using
  7697.                        the /Macro Run command.  You will be asked for the name
  7698.                        of  the  application  program to  run.    If  you press
  7699.                        <Enter> without  entering  a name,  the InstaCalc  file
  7700.                        manager  will  pop up  from  which you  may  select the
  7701.                        application from.
  7702.  
  7703.         Keystroke      If  you have  named your  application with  one  of the
  7704.                        keystroke  names,  you  can  run   the  application  by
  7705.                        pressing the key.  For example, if the application file
  7706.                        is named CTRLX.MAC  then pressing <Ctrl>X will  run the
  7707.                        application.
  7708.  
  7709.         Worksheet      You can also give your application the same name as one
  7710.                        of your worksheets  (except that the extension  will be
  7711.                        .MAC instead of .INS).  When a new data file  (.INS) is
  7712.                        retrieved,  InstaCalc  will check  for  a corresponding
  7713.                        application to  run.   For example,  when you  retrieve
  7714.                        INVOICE.INS, then InstaCalc  will look for and  run the
  7715.                        application INVOICE.MAC (if it exists).
  7716.  
  7717.  
  7718.  
  7719.                                          113
  7720.  
  7721.  
  7722.  
  7723.  
  7724.  
  7725.  
  7726.         If an error is encountered when running  an application, then an error
  7727.         message  will  first be  displayed.   Then,  when you  press a  key to
  7728.         continue,  InstaCalc will  load the  application into the  editor, and
  7729.         place you on the line where the error occurred to allow you to fix the
  7730.         problem.  
  7731.  
  7732.  
  7733.  
  7734.         LANGUAGE DESCRIPTION
  7735.  
  7736.         An InstaCalc program is one or more lines of text residing in an ASCII
  7737.         file.   There are four  different types of lines  which you can put in
  7738.         your application; comments,  labels, macros, and commands.   The first
  7739.         character of each line  of text determines  what type of command  that
  7740.         line is.  Each line of your application program will begin with one of
  7741.         four  different characters,  a pound  sign (#),  an apostrophe  ('), a
  7742.         colon (:), or an exclamation mark (!).
  7743.  
  7744.         Comments  A line which begins with an exclamation mark (!) is simply a
  7745.                   comment.  All of the characters on  the line after the ! are
  7746.                   ignored  when InstaCalc runs  the application program.   The
  7747.                   sole purpose of comments is  to make your programs easier to
  7748.                   understand when you read them.
  7749.  
  7750.                   Example:
  7751.  
  7752.                   ! This is a comment
  7753.  
  7754.                   This line  is ignored  when  InstaCalc encounters  it in  an
  7755.                   application program.
  7756.  
  7757.  
  7758.         Labels    A line which begins with a colon (:) is a label.  A label is
  7759.                   simply a  string  which marks  a  specific position  in  the
  7760.                   application program.
  7761.  
  7762.                   Example:
  7763.  
  7764.                   :MyLabel
  7765.  
  7766.                   This  line  does  nothing  when  it  is  encountered  in  an
  7767.                   InstaCalc application program.  Some InstaCalc ICE  commands
  7768.                   (such as #GOTO) use labels as a place to jump to for further
  7769.                   processing.
  7770.  
  7771.         Macros    A line which begins with an apostrophe (') is  a sequence of
  7772.                   direct keystrokes (keystroke macro) which you want InstaCalc
  7773.                   to execute.  Keystrokes which are printable ASCII characters
  7774.                   (letters,  numbers, symbols,  etc.)  are displayed  in their
  7775.                   printable  form.  Keystrokes  which are NOT  printable ASCII
  7776.                   characters   (such  as  function  keys,  Ctrl  and  Alt  key
  7777.                   sequences,  cursor movement keys, etc.) are displayed as the
  7778.                   name of the key enclosed in angle brackets <>.  For example,
  7779.                   the <Enter> key is displayed as <Enter>.
  7780.  
  7781.                   Example:
  7782.  
  7783.  
  7784.  
  7785.                                          114
  7786.  
  7787.  
  7788.  
  7789.  
  7790.  
  7791.  
  7792.                   '/cfcn2<Enter>
  7793.  
  7794.                   This  line causes  the  current  cell  to  be  formatted  as
  7795.                   currency with  2 decimal places and no commas.  This is done
  7796.                   because  InstaCalc processes each keystroke in the line just
  7797.                   as if you typed it in yourself.
  7798.                   - The / key is processed, which summons the main menu
  7799.                   - The C key is processed, which selects the "Cell" option
  7800.                   - The F key is processed, which selects the "Format" option
  7801.                   - The  C  key is  processed,  which selects  the  "Currency"
  7802.                   option
  7803.                   - The N key is processed, which selects the "NoComma" option
  7804.                   -  The number  "2"  is processed,  which types  2 in  as the
  7805.                   number of decimal places
  7806.                   - The <Enter>  causes the <Enter> key to  be processed (this
  7807.                   is one of the  special keys), which enters  the number 2  as
  7808.                   the number of decimal places.
  7809.  
  7810.                   Keystroke macros can even be read from cells.  Simply follow
  7811.                   the  apostrophe  with  the  cell  name  enclosed  in  square
  7812.                   brackets.   For example,  if you want  the keystrokes  to be
  7813.                   read from cell B5, simply use the line:
  7814.  
  7815.                   '[B5]
  7816.  
  7817.         Commands  A line  which begins with a  pound sign (#)  is an InstaCalc
  7818.                   Command Environment  (ICE) command.   It  is these  commands
  7819.                   which  provide  the  muscle  for  sophisticated  application
  7820.                   development.    These  commands are  described  in  the next
  7821.                   section.
  7822.  
  7823.  
  7824.  
  7825.  
  7826.  
  7827.  
  7828.  
  7829.  
  7830.  
  7831.  
  7832.  
  7833.  
  7834.  
  7835.  
  7836.  
  7837.  
  7838.  
  7839.  
  7840.  
  7841.  
  7842.  
  7843.  
  7844.  
  7845.  
  7846.  
  7847.  
  7848.  
  7849.  
  7850.  
  7851.                                          115
  7852.  
  7853.  
  7854.  
  7855.  
  7856.  
  7857.  
  7858.         SPECIAL KEY NAMES
  7859.  
  7860.         Although  the   letter,  number,  and  symbol  keys  can  be  directly
  7861.         referenced  by their  character, several  keys cannot  be referred  to
  7862.         using a single character.  InstaCalc gives  each of these keys its own
  7863.         name.   When one  of these  keystrokes is  encountered in  a keystroke
  7864.         macro, the name of the key is  surrounded by angle brackets <> so that
  7865.         InstaCalc  can  tell it  apart  from  regular  characters.   When  the
  7866.         keystroke is used as the name  of an application file, then the  angle
  7867.         brackets (and certain other characters)  are not used because DOS will
  7868.         not allow them.   Below is a list of special  keystrokes, and the name
  7869.         of the keystrokes when used both in a macro and as a file name.
  7870.  
  7871.         KEY SEQUENCE        KEYSTROKE NAME      FILE NAME
  7872.         <BkSp>              <BkSp>              N/A
  7873.         <Ctrl><BkSp>        <^BkSp>             N/A
  7874.         <Esc>               <Esc>               N/A
  7875.         <Enter>             <Enter>             N/A
  7876.         <Tab>               <Tab>               N/A
  7877.         <Ctrl>A-
  7878.              <Ctrl>Z *      <CtrlA> - <CtrlZ>   CTRLA.MAC-CTRLZ.MAC
  7879.         <Alt>A-
  7880.              <Alt>Z         <AltA> - <AltZ>     ALTA.MAC-ALTZ.MAC
  7881.         <Home>              <Home>              N/A
  7882.         <End>               <End>               N/A
  7883.         <Left>              <Left>              N/A
  7884.         <Right>             <Right>             N/A
  7885.         <Up>                <Up>                N/A
  7886.         <Down>              <Down>              N/A
  7887.         <PgUp>              <PgUp>              N/A
  7888.         <PgDn>              <PgDn>              N/A
  7889.         <Ins>               <Ins>               N/A
  7890.         <Del>               <Del>               N/A
  7891.         <F1> - <F10>        <F1>-<F10>          N/A
  7892.         <Shift><F1>-
  7893.              <Shift><F10>   <ShF1>-<ShF10>      SHF1.MAC-SHF10.MAC
  7894.         <Ctrl><F1>-
  7895.              <Ctrl><F10>    <^F1>-<^F10>        N/A
  7896.         <Alt><F1>-
  7897.              <Alt><F10>     <AltF1>-<AltF10>    ALTF1-ALTF10.MAC
  7898.         <Ctrl><Left>        <^Left>             N/A
  7899.         <Ctrl><Right>       <^Right>            N/A
  7900.         <Ctrl><Home>        <^Home>             N/A
  7901.         <Ctrl><End>         <^End>              N/A
  7902.         <Ctrl><PgUp>        <^PgUp>             N/A
  7903.         <Ctrl><PgDn>        <^PgDn>             N/A
  7904.  
  7905.         * <Ctrl>H, <Ctrl>I, and <Ctrl>M are not available as file names.
  7906.  
  7907.  
  7908.  
  7909.  
  7910.  
  7911.  
  7912.  
  7913.  
  7914.  
  7915.  
  7916.  
  7917.                                          116
  7918.  
  7919.  
  7920.  
  7921.  
  7922.  
  7923.  
  7924.         THE INSTACALC COMMAND ENVIRONMENT
  7925.  
  7926.         The InstaCalc Command Environment (ICE)  is a set of powerful commands
  7927.         which you can use in your application programs to create menus, pop up
  7928.         windows, access files, and even run other programs.
  7929.  
  7930.         Each ICE  command is a single word prefixed  with the # character (for
  7931.         example  #OUTPUT).   Most  of  these ICE  commands  require additional
  7932.         information on the same line.   These additional pieces of information
  7933.         are known as arguments.  If you have more than one argument on a line,
  7934.         you must separate them from each other with either a space or a comma.
  7935.         Also, if any of your  arguments are text strings which have a space or
  7936.         comma  in it, then  you must surround  the text string  with quotes so
  7937.         that InstaCalc knows to keep the text together.
  7938.  
  7939.         Example   The  command #OUTPUT  (which writes  text  onto the  screen)
  7940.                   requires 3  arguments; the column  and row on the  screen to
  7941.                   write to, as well as the text to write, like this:
  7942.  
  7943.                   #OUTPUT 5,10 "This is some text"
  7944.  
  7945.                   The ICE command  is #OUTPUT, and the three  arguments are 5,
  7946.                   10, and "This is some text".
  7947.  
  7948.         The arguments for each of the ICE commands is considered by default to
  7949.         be either a  constant numeric or  text value.   There are many  times,
  7950.         however, when it  is desirable (or necessary)  to use the result  of a
  7951.         formula  instead.   InstaCalc  allows  you provide  a  formula for  an
  7952.         argument by simply  enclosing the argument in square  brackets [] (you
  7953.         don't need to add the leading equal sign).
  7954.  
  7955.         Example   The format for the #OUTPUT command is:
  7956.  
  7957.                   #OUTPUT x,y line
  7958.  
  7959.                   By default, InstaCalc expects something like:
  7960.  
  7961.                   #OUTPUT 5,10 "This is some text"
  7962.  
  7963.                   This line  in an  application tells  InstaCalc to  write the
  7964.                   string This is some text starting in the 5th column and 10th
  7965.                   row of the screen.
  7966.  
  7967.                   Suppose, however,  that you  wanted to  output the value  of
  7968.                   cell A1 instead of  the constant "This is some text".   Then
  7969.                   you would simply use the line:
  7970.  
  7971.                   #OUTPUT 5,10 [A1]
  7972.  
  7973.                   Or if you  wanted to output the  contents of cell A1  in all
  7974.                   upper case you would use:
  7975.  
  7976.                   #OUTPUT 5,10 [@upper(A1)]
  7977.  
  7978.                   This method works just as  well for numeric arguments as for
  7979.                   text  arguments.   Suppose you wanted  to output  the string
  7980.                   "This  is some  text" starting  in the  5th column,  but you
  7981.  
  7982.  
  7983.                                          117
  7984.  
  7985.  
  7986.  
  7987.  
  7988.  
  7989.  
  7990.                   wanted the row to be the value in cell A1.  You would use:
  7991.  
  7992.                   #OUTPUT 5,[A1] "This is some text"
  7993.  
  7994.  
  7995.  
  7996.         INPUT/OUTPUT
  7997.         The I/O  commands provide  a variety  of ways  to read  data from  the
  7998.         keyboard, output to the  screen and printer.  There  are also commands
  7999.         to create customized  help and error systems.   You may  also generate
  8000.         delays and audible tones.
  8001.  
  8002.  
  8003.         DATA
  8004.         The data commands allow your application to move to or manipulate data
  8005.         in cells of the worksheet.
  8006.  
  8007.  
  8008.         CONTROL
  8009.         The control commands provide the ability to loop, perform  conditional
  8010.         or unconditional branching, and call subroutines.
  8011.  
  8012.  
  8013.         EXTERNAL
  8014.         The external commands  allow you to run DOS  commands, other programs,
  8015.         or other InstaCalc application programs as subroutines.
  8016.  
  8017.  
  8018.         DEBUGGING
  8019.         The debugging  commands allow you  to single step, set  conditional or
  8020.         unconditional  breakpoints, and  evaluate and  change  cells while  an
  8021.         application is running.
  8022.  
  8023.  
  8024.  
  8025.  
  8026.  
  8027.  
  8028.  
  8029.  
  8030.  
  8031.  
  8032.  
  8033.  
  8034.  
  8035.  
  8036.  
  8037.  
  8038.  
  8039.  
  8040.  
  8041.  
  8042.  
  8043.  
  8044.  
  8045.  
  8046.  
  8047.  
  8048.  
  8049.                                          118
  8050.  
  8051.  
  8052.  
  8053.  
  8054.  
  8055.  
  8056.         ---------------------------------------------------------------------
  8057.         #ASSIGN                                                           Data
  8058.         ---------------------------------------------------------------------
  8059.         Function  Assigns a value to a cell.
  8060.  
  8061.         Syntax    #ASSIGN cellname value
  8062.  
  8063.         Remarks   This command allows you to assign a value to a  cell without
  8064.                   having to move to it first.   cellname can be either a  cell
  8065.                   address or  a named range.  value can  be either a number or
  8066.                   text.
  8067.  
  8068.         Example   #ASSIGN B5 123.45
  8069.                   #ASSIGN C6 "January"
  8070.                   #ASSIGN interest .1
  8071.                   #ASSIGN A1 [@SIN(A1)]
  8072.  
  8073.         ---------------------------------------------------------------------
  8074.         #BLOCK                                                    Input/Output
  8075.         ---------------------------------------------------------------------
  8076.         Function  Allows you to  define a range by highlighting  or typing the
  8077.                   name.
  8078.  
  8079.         Syntax    #BLOCK cellname prompt
  8080.  
  8081.         Remarks   This  command displays prompt and  allows you to highlight a
  8082.                   range of  cells.   The range  selected is  stored as a  text
  8083.                   string  in cellname.    This cell  can then  be  used as  an
  8084.                   indirect  address in range functions by entering cellname in
  8085.                   square brackets when asked to define a range.
  8086.  
  8087.         Example   #BLOCK D3 "Fill which range with zeros?"
  8088.                   '/df[D3]<Enter>0<Enter>
  8089.  
  8090.                   will  ask you Fill which range  with zeros? and allow you to
  8091.                   highlight the  range.   If you  highlight the  range A1..B5,
  8092.                   then the string 'A1..B5 will be placed in cell D3.  When the
  8093.                   /Data Fill command asks for  the range to fill, the sequence
  8094.                   [D3] will be entered, and InstaCalc will use the contents of
  8095.                   D3 as the range to fill.  So the range A1..B5 will be filled
  8096.                   with zeros.
  8097.  
  8098.  
  8099.         ---------------------------------------------------------------------
  8100.         #BOX                                                      Input/Output
  8101.         ---------------------------------------------------------------------
  8102.         Function  Displays a box on the screen.
  8103.  
  8104.         Syntax    #BOX x1,y1,x2,y2 save title
  8105.  
  8106.         Remarks   This command displays a box  on the screen.  The upper  left
  8107.                   corner of the box is located at screen position x1,  y1, and
  8108.                   the lower right corner of the box is located at position x2,
  8109.                   y2.  save determines whether InstaCalc saves the contents of
  8110.                   the screen under  the box before displaying it.   If save=0,
  8111.                   then the screen contents are not saved.  If save=1, then the
  8112.                   screen  contents are  saved, and  can be restored  using the
  8113.  
  8114.  
  8115.                                          119
  8116.  
  8117.  
  8118.  
  8119.  
  8120.  
  8121.  
  8122.                   #CLEARBOX  command.   Saving  the  screen contents  requires
  8123.                   extra  memory, so  if  it  isn't  necessary to  restore  the
  8124.                   contents, it is best to set save to 0.  The #RESTORE command
  8125.                   will restore the  InstaCalc screen even if  it wasn't saved,
  8126.                   so you can use #BOX with save=0 to clear the screen to begin
  8127.                   your application.
  8128.  
  8129.         Example   #BOX 1,1,80,25 0 "Main Screen"
  8130.  
  8131.                   this command clears the screen with the title Main Screen.
  8132.  
  8133.  
  8134.  
  8135.         ---------------------------------------------------------------------
  8136.         #BREAK                                                         Control
  8137.         ---------------------------------------------------------------------
  8138.         Function  Enables/disables breaking out of programs.
  8139.  
  8140.         Syntax    #BREAK 0/1
  8141.  
  8142.         Remarks   This command allows you to  enable or disable the ability to
  8143.                   break out of  an application program while it  is running by
  8144.                   pressing <Ctrl><F3>.   By default, an application  will exit
  8145.                   when  <Ctrl><F3>  is  pressed.   This  command  provides the
  8146.                   capability to  prevent  a user  from  breaking out  of  your
  8147.                   application.   It  is best  to leave  breaking  enabled when
  8148.                   creating your application.
  8149.  
  8150.         Example   #BREAK 0
  8151.                   causes your program to ignore <Ctrl><F3> when it is pressed.
  8152.  
  8153.  
  8154.         ---------------------------------------------------------------------
  8155.         #CALL                                                          Control
  8156.         ---------------------------------------------------------------------
  8157.         Function  Calls a subroutine.
  8158.  
  8159.         Syntax    #CALL label / #RETURN
  8160.  
  8161.         Remarks   This command causes execution of  the program to continue at
  8162.                   label.    When  the #RETURN  statement  is  encountered, the
  8163.                   program  branches back to the line immediately following the
  8164.                   original #CALL command.
  8165.  
  8166.         Example   #CALL MyLabel
  8167.                   #OUTPUT 10,11 "Print this second"
  8168.                   #EXIT
  8169.  
  8170.                   :MyLabel
  8171.                   #OUTPUT 10,10 "Print this first"
  8172.                   #RETURN
  8173.  
  8174.                   The #CALL statement  branches to MyLabel and  executes lines
  8175.                   until the  #RETURN command,  then returns  back to  the line
  8176.                   following the #CALL statement.
  8177.  
  8178.  
  8179.  
  8180.  
  8181.                                          120
  8182.  
  8183.  
  8184.  
  8185.  
  8186.  
  8187.  
  8188.         ---------------------------------------------------------------------
  8189.         #CLEARBOX                                                 Input/Output
  8190.         ---------------------------------------------------------------------
  8191.         Function  Clears the most recent box placed on the screen.
  8192.  
  8193.         Syntax    #CLEARBOX
  8194.  
  8195.         Remarks   This command  clears the last  box placed on the  screen (by
  8196.                   #BOX or #WINDOW)  and replaces the data which  was under it.
  8197.                   This command only has an effect  if #BOX or #WINDOW set  the
  8198.                   save option to 1 (meaning to save the screen contents).
  8199.  
  8200.         Example   !This line draws a box on the screen
  8201.                   #BOX 10,10,40,15 1 "My Box"
  8202.                   !This line clears the box off the screen
  8203.                   #CLEARBOX
  8204.  
  8205.  
  8206.         ---------------------------------------------------------------------
  8207.         #DEC                                                              Data
  8208.         ---------------------------------------------------------------------
  8209.         Function  Decrements a cell's value.
  8210.  
  8211.         Syntax    #DEC cellname x
  8212.  
  8213.         Remarks   This command decrements  (reduces) the value in  cellname by
  8214.                   x.  If you don't supply x, then a value of 1 is assumed.
  8215.  
  8216.         Example   #DEC B5 6.05
  8217.                   decrements the value in B5 by 6.05
  8218.  
  8219.  
  8220.  
  8221.         ---------------------------------------------------------------------
  8222.         #DELAY                                                    Input/Output
  8223.         ---------------------------------------------------------------------
  8224.         Function  Generates a delay in your application program.
  8225.  
  8226.         Syntax    #DELAY milliseconds
  8227.  
  8228.         Remarks   This  command  allows   you  to  insert  delays   into  your
  8229.                   application programs.
  8230.  
  8231.         Example   #DELAY 1000
  8232.                   pauses for one second (1000 milliseconds)
  8233.  
  8234.  
  8235.  
  8236.  
  8237.  
  8238.  
  8239.  
  8240.  
  8241.  
  8242.  
  8243.  
  8244.  
  8245.  
  8246.  
  8247.                                          121
  8248.  
  8249.  
  8250.  
  8251.  
  8252.  
  8253.  
  8254.         ---------------------------------------------------------------------
  8255.         #DELETE                                                           File
  8256.         ---------------------------------------------------------------------
  8257.         Function  Deletes a file from the disk.
  8258.  
  8259.         Syntax    #DELETE filename
  8260.  
  8261.         Remarks   This  command  will delete  filename  from the  disk  (if it
  8262.                   exists).
  8263.  
  8264.         Example   #DELETE myfile.dat
  8265.                   erases the file named myfile.dat from the current directory.
  8266.  
  8267.  
  8268.         ---------------------------------------------------------------------
  8269.         #DOS                                                          External
  8270.         ---------------------------------------------------------------------
  8271.         Function  Runs a DOS command or  external program as if it were  being
  8272.                   run from the DOS prompt.
  8273.  
  8274.         Syntax    #DOS command
  8275.  
  8276.         Remarks   This command allows  you to perform a  DOS command or run  a
  8277.                   program just  as if you  had typed  the command  at the  DOS
  8278.                   prompt.   There must be  enough memory available to  run the
  8279.                   program or the command will be ignored.
  8280.  
  8281.         Example   #DOS "dir *.INS"
  8282.                   displays a directory of all InstaCalc data files
  8283.  
  8284.  
  8285.         ---------------------------------------------------------------------
  8286.         #EDIT                                                     Input/Output
  8287.         ---------------------------------------------------------------------
  8288.         Function  Prompts and allows editing of a cell's contents.
  8289.  
  8290.         Syntax    #EDIT x,y cellname len prompt
  8291.  
  8292.         Remarks   This command  displays prompt at position x,y on the screen,
  8293.                   followed by the contents of  cellname.  You are then allowed
  8294.                   to edit the contents of cellname.  len is the maximum number
  8295.                   of  characters which is displayed and  which you are allowed
  8296.                   to enter or edit.
  8297.  
  8298.         Example   #EDIT 40,4 a1 6 "Invoice #"
  8299.  
  8300.                   displays Invoice # at position 40,4 on the screen,  followed
  8301.                   by the  contents of cell  A1.  You  will only be  allowed to
  8302.                   enter 6 characters (or less).
  8303.  
  8304.  
  8305.  
  8306.  
  8307.  
  8308.  
  8309.  
  8310.  
  8311.  
  8312.  
  8313.                                          122
  8314.  
  8315.  
  8316.  
  8317.  
  8318.  
  8319.  
  8320.         ---------------------------------------------------------------------
  8321.         #EDITERR                                                     Debugging
  8322.         ---------------------------------------------------------------------
  8323.         Function  Enables or disables automatic editing of errors.
  8324.  
  8325.         Syntax    #EDITERR 0/1
  8326.  
  8327.         Remarks   When InstaCalc  encounters an  error in  an application,  it
  8328.                   displays an  error message, then  calls up the macro  in the
  8329.                   macro editor.   The cursor is placed  on the line  where the
  8330.                   error occurred so that you can fix the problem.
  8331.  
  8332.                   There may be times when you do not want InstaCalc to call up
  8333.                   the application for editing.  #EDITERR allows you to disable
  8334.                   this feature.
  8335.  
  8336.         Example   #EDITERR 0
  8337.                   disables automatic error editing
  8338.  
  8339.  
  8340.  
  8341.         ---------------------------------------------------------------------
  8342.         #EXIT                                                          Control
  8343.         ---------------------------------------------------------------------
  8344.         Function  Ends the application program.
  8345.  
  8346.         Syntax    #EXIT
  8347.  
  8348.         Remarks   This command terminates the current application program.  If
  8349.                   the current  program was called by another program using the
  8350.                   #RUN  command, then  control  is  returned  to  the  calling
  8351.                   program.
  8352.  
  8353.  
  8354.         ---------------------------------------------------------------------
  8355.         #FOR / #NEXT                                                   Control
  8356.         ---------------------------------------------------------------------
  8357.         Function  Repeat commands a fixed number of times.
  8358.  
  8359.         Syntax    #FOR cellname start end step
  8360.                     {some commands}
  8361.                   #NEXT 
  8362.  
  8363.         Remarks   This  command creates  a loop  which  can perform  a set  of
  8364.                   commands a certain number  of times.  The value of  start is
  8365.                   placed in  cellname.  and  as long as the  value of cellname
  8366.                   does  not exceed  the  value  of end,  the  set of  commands
  8367.                   between the #FOR  and #NEXT command will be  executed.  Each
  8368.                   time the  #NEXT command branches  back to the  #FOR command,
  8369.                   the  value  in  cellname will  be  incremented  by step  and
  8370.                   compared with end.
  8371.  
  8372.                   It is also legal  for step to be a negative  value, in which
  8373.                   case the  #FOR loop will  continue until start is  less than
  8374.                   end.
  8375.  
  8376.                   The value in cellname may be used anywhere within the loop.
  8377.  
  8378.  
  8379.                                          123
  8380.  
  8381.  
  8382.  
  8383.  
  8384.  
  8385.  
  8386.         Example   #FOR a1 1 7 2
  8387.                     #OUTPUT 1,[a1] "Hello World"
  8388.                   #NEXT
  8389.  
  8390.                   Writes the string "Hello World" on the screen on lines 1, 3,
  8391.                   5, and 7.
  8392.  
  8393.  
  8394.         ---------------------------------------------------------------------
  8395.         #GOTO                                                          Control
  8396.         ---------------------------------------------------------------------
  8397.         Function  Branches to another part of the program.
  8398.  
  8399.         Syntax    #GOTO label
  8400.  
  8401.         Remarks   This command causes the program to continue execution at the
  8402.                   given label.   The label may  be either before or  after the
  8403.                   #GOTO, but it must be in the same program file.
  8404.  
  8405.         Example   #GOTO MyLabel
  8406.                   #OUTPUT 10,10 "Don't print this"
  8407.  
  8408.                   :MyLabel
  8409.                   #OUTPUT 10,10 "Print this instead"
  8410.  
  8411.  
  8412.         ---------------------------------------------------------------------
  8413.         #IF / #ELSE / #ENDIF                                           Control
  8414.         ---------------------------------------------------------------------
  8415.         Function  Executes a set of commands if a condition is true.
  8416.  
  8417.         Syntax    #IF boolean formula
  8418.                     {some commands}
  8419.                   #ELSE
  8420.                     {some commands}
  8421.                   #ENDIF
  8422.  
  8423.         Remarks   This command  evaluates boolean formula, and if  it is true,
  8424.                   continues  executing  commands  until  #ELSE  or  #ENDIF  is
  8425.                   reached.  All commands between  the #ELSE and #ENDIF will be
  8426.                   ignored.
  8427.  
  8428.                   If  boolean formula is false, then the program branches from
  8429.                   the #IF to the #ELSE command  (if there is one) and executes
  8430.                   the commands between #ELSE and #ENDIF.
  8431.  
  8432.         Example   #IF a1=1 
  8433.                     #OUTPUT 10,10 "It's equal to one" 
  8434.                   #ELSE 
  8435.                     #OUTPUT 10,10 "It's not equal to one"
  8436.                   #ENDIF 
  8437.  
  8438.                   If the value of cell A1 equals one, then the line It's equal
  8439.                   to one will  be output, otherwise the line It's not equal to
  8440.                   one will be output.
  8441.  
  8442.  
  8443.  
  8444.  
  8445.                                          124
  8446.  
  8447.  
  8448.  
  8449.  
  8450.  
  8451.  
  8452.         ---------------------------------------------------------------------
  8453.         #INC                                                              Data
  8454.         ---------------------------------------------------------------------
  8455.         Function  Increments a cell's value.
  8456.  
  8457.         Syntax    #INC cellname x
  8458.  
  8459.         Remarks   This command increments (increases) the value of cellname by
  8460.                   x.  If you do not specify x, then a value of 1 is assumed.
  8461.  
  8462.         Example   #INC B5 6.05
  8463.                   increments the value in B5 by 6.05
  8464.  
  8465.  
  8466.         ---------------------------------------------------------------------
  8467.         #INPUT                                                    Input/Output
  8468.         ---------------------------------------------------------------------
  8469.         Function  Prompts for and accepts input from the keyboard.
  8470.  
  8471.         Syntax    #INPUT x,y cellname len prompt
  8472.  
  8473.         Remarks   This command displays prompt at  position x,y on the screen.
  8474.                   You  are then  allowed  to  enter some  text  which will  be
  8475.                   entered  into  cellname.    len  is  the  maximum number  of
  8476.                   characters which you are allowed to enter.
  8477.  
  8478.         Example   #INPUT 40,4 a1 6 "Enter the sales for May "
  8479.  
  8480.                   displays Enter  the sales  for May at  position 40,4  on the
  8481.                   screen.  You will only be allowed to enter 6  characters (or
  8482.                   less).  Whatever you type will be entered into cell A1.
  8483.  
  8484.  
  8485.         ---------------------------------------------------------------------
  8486.         #KEY                                                      Input/Output
  8487.         ---------------------------------------------------------------------
  8488.         Function  Prompts for and reads a keystroke.
  8489.  
  8490.         Syntax    #KEY x,y cellname prompt maskchars
  8491.  
  8492.         Remarks   This command displays prompt at position  x,y, and waits for
  8493.                   you to  press a  key.  The  #KEY command  will automatically
  8494.                   place the  keystroke pressed  into cellname.   The  returned
  8495.                   keystroke  will be  a letter,  number,  or symbol  if it  is
  8496.                   regular ASCII.   If it  is a special  key like a  control or
  8497.                   alternate sequence, cursor key, or function key,  it will be
  8498.                   in angle brackets like this:  <Enter>, <PgUp>, <F1> or <^S>.
  8499.  
  8500.                   maskchars is an optional argument  which allows you to force
  8501.                   #KEY  to  accept  only certain  characters.    If you  leave
  8502.                   maskchars blank, then #KEY will  accept any key pressed.  If
  8503.                   maskchars  is a character (or list of characters), then #KEY
  8504.                   will  only accept  those characters  (upper  and lower  case
  8505.                   letters are treated as the same character).
  8506.  
  8507.         Example   #KEY 10,10 a1 "Continue?:" y n
  8508.  
  8509.  
  8510.  
  8511.                                          125
  8512.  
  8513.  
  8514.  
  8515.  
  8516.  
  8517.  
  8518.                   displays Continue?: at screen position 10,10, waits for y or
  8519.                   n to be pressed, and then places the name of the key pressed
  8520.                   in cell A1.
  8521.  
  8522.  
  8523.  
  8524.         ---------------------------------------------------------------------
  8525.         #LOCATE                                                           Data
  8526.         ---------------------------------------------------------------------
  8527.         Function  Moves the cell pointer relatively.
  8528.  
  8529.         Syntax    #LOCATE column row
  8530.  
  8531.         Remarks   This command allows you to  move the cell pointer by several
  8532.                   rows and columns at a time.  column is the number of columns
  8533.                   you want to move to the right, and row is the number of rows
  8534.                   you  want to  move down.   You  may set  row or column  to a
  8535.                   negative value to move in the opposite direction, or to 0 if
  8536.                   you don't want to move either direction.
  8537.  
  8538.         Example   #LOCATE 1 -2 3
  8539.                   moves the cell pointer right 1 column and up 2 rows.
  8540.  
  8541.  
  8542.         ---------------------------------------------------------------------
  8543.         #MENU                                                     Input/Output
  8544.         ---------------------------------------------------------------------
  8545.         Function  Creates and displays a menu on the screen.
  8546.  
  8547.         Syntax    #MENU x,y cellname helpline title
  8548.                   #HMENU x,y cellname helpline title
  8549.  
  8550.         Remarks   These  commands (along with the #MENUITEM command) allow you
  8551.                   to create and display customized menus from your application
  8552.                   programs (#MENU generates a vertical menu, #HMENU  generates
  8553.                   a horizontal menu).   The menu will be  placed on the screen
  8554.                   at position x,y, and title will be placed at the top  of the
  8555.                   menu.  Each item to be displayed  in the menu are defined by
  8556.                   #MENUITEM commands following the  #MENU  command.  The  help
  8557.                   line  for each item  will be  placed on  the screen  on line
  8558.                   number helpline.   When  the user selects  an item  from the
  8559.                   menu,  InstaCalc will enter  the item number  into cellname.
  8560.                   For example, if the user selects the 3rd item from the menu,
  8561.                   InstaCalc will enter the value 3 into cellname.  If the user
  8562.                   escapes from the  menu by pressing the  <Esc> key, InstaCalc
  8563.                   will enter the value 0 into cellname.
  8564.  
  8565.         Example   #MENU 20,10 A1 1 "My Menu"
  8566.                     #MENUITEM "Add" "Add a record"
  8567.                     #MENUITEM "Delete" "Delete a record"
  8568.                     #MENUITEM "Quit" "Exit from menu"
  8569.  
  8570.                   These lines  create and  display a menu  with 3  items; Add,
  8571.                   Delete, and Quit.  If Delete  is selected, then the value  2
  8572.                   is entered into cell A1.
  8573.  
  8574.  
  8575.  
  8576.  
  8577.                                          126
  8578.  
  8579.  
  8580.  
  8581.  
  8582.  
  8583.  
  8584.         ---------------------------------------------------------------------
  8585.         #MENUITEM                                                 Input/Output
  8586.         ---------------------------------------------------------------------
  8587.         Function  Defines an item and its help line in a menu.
  8588.  
  8589.         Syntax    #MENUITEM item help
  8590.  
  8591.         Remarks   This command defines one  of the items in a menu.   item and
  8592.                   help are  both text  strings enclosed in  quotes.   item and
  8593.                   help can also be cell  references or text formulas  enclosed
  8594.                   in square  brackets to  allow  you to  build menu  selection
  8595.                   items on the fly.
  8596.  
  8597.  
  8598.         ---------------------------------------------------------------------
  8599.         #OUTPUT                                                   Input/Output
  8600.         ---------------------------------------------------------------------
  8601.         Function  Displays text on the screen.
  8602.  
  8603.         Syntax    #OUTPUT x,y line
  8604.  
  8605.         Remarks   This command allows  your application program to  write text
  8606.                   to the screen.   #OUTPUT will display  line at column x  and
  8607.                   row y on the screen.  x must be in the range 1  to 80, and y
  8608.                   must be in the range 1 to 25.
  8609.  
  8610.         Example   #OUTPUT 40,4 "Hi there" 
  8611.                   #OUTPUT 40,4 [A1]
  8612.                   #OUTPUT [A2],10 "Another line"
  8613.  
  8614.  
  8615.  
  8616.  
  8617.  
  8618.  
  8619.  
  8620.  
  8621.  
  8622.  
  8623.  
  8624.  
  8625.  
  8626.  
  8627.  
  8628.  
  8629.  
  8630.  
  8631.  
  8632.  
  8633.  
  8634.  
  8635.  
  8636.  
  8637.  
  8638.  
  8639.  
  8640.  
  8641.  
  8642.  
  8643.                                          127
  8644.  
  8645.  
  8646.  
  8647.  
  8648.  
  8649.  
  8650.         ---------------------------------------------------------------------
  8651.         #PASSWORD                                                 Input/Output
  8652.         ---------------------------------------------------------------------
  8653.         Function  Prompts for and accepts a password.
  8654.  
  8655.         Syntax    #PASSWORD x,y cellname len prompt
  8656.  
  8657.         Remarks   This  command is  exactly the  same as  the  #INPUT command,
  8658.                   except  that keystrokes which  you enter are  not displayed.
  8659.                   This command displays prompt at position x,y  on the screen.
  8660.                   You  are then  allowed  to  enter some  text  which will  be
  8661.                   entered  into cellname.    len  is  the  maximum  number  of
  8662.                   characters which you are allowed to enter.
  8663.  
  8664.         Example   #PASSWORD 40,4 a1 6 "Enter the magic word "
  8665.  
  8666.                   displays Enter  the  magic  word at  position  40,4  on  the
  8667.                   screen,  followed by  6 box  characters.   You will  only be
  8668.                   allowed to enter 6 characters (or less), and you will not be
  8669.                   able to see  the actual characters that you  type.  Whatever
  8670.                   you type will be entered into cell A1.
  8671.  
  8672.  
  8673.         ---------------------------------------------------------------------
  8674.         #PRINT / #PRINTLN                                         Input/Output
  8675.         ---------------------------------------------------------------------
  8676.         Function  Sends data to your printer.
  8677.  
  8678.         Syntax    #PRINT line
  8679.                   #PRINTLN line
  8680.  
  8681.         Remarks   These two commands  allow your program to send  line to your
  8682.                   printer.    The  only  difference  between  the  #PRINT  and
  8683.                   #PRINTLN commands is that the #PRINTLN command sends a CR/LF
  8684.                   command  to the printer after it  has sent line.  This means
  8685.                   that you can use #PRINT several times in a row to print data
  8686.                   on the same line.   If you want to just send a blank line to
  8687.                   the printer, you can simply use the command #PRINTLN without
  8688.                   any argument.
  8689.  
  8690.                   If you want  to print numbers,  they must be converted  to a
  8691.                   string first.  The best way  to do this is with the  @FORMAT
  8692.                   function, which  allows you to  format the number in  any of
  8693.                   InstaCalc's formats.
  8694.  
  8695.         Example   #PRINT "Hi there"        #PRINTLN "Hi there"
  8696.                   #PRINT [A1]              #PRINTLN [A1]
  8697.  
  8698.  
  8699.         ---------------------------------------------------------------------
  8700.         #REPEAT / #UNTIL                                               Control
  8701.         ---------------------------------------------------------------------
  8702.         Function  Repeat some commands until a condition exists.
  8703.  
  8704.         Syntax    #REPEAT
  8705.                     {some commands}
  8706.                   #UNTIL boolean formula
  8707.  
  8708.  
  8709.                                          128
  8710.  
  8711.  
  8712.  
  8713.  
  8714.  
  8715.  
  8716.         Remarks   This command  repeats a command  or set of commands  until a
  8717.                   condition becomes  true.   InstaCalc  executes the  commands
  8718.                   after  the  #REPEAT  until the  #UNTIL  command  is reached.
  8719.                   InstaCalc then  evaluates boolean formula, and branches back
  8720.                   to the #REPEAT command  if it is false.  boolean formula may
  8721.                   be any legal InstaCalc formula which returns a TRUE or FALSE
  8722.                   value.
  8723.  
  8724.         Example   #REPEAT
  8725.                     #INC a1
  8726.                   #UNTIL a1>30
  8727.  
  8728.                   The contents of cell A1 is incremented until the contents of
  8729.                   A1 is greater than 30.
  8730.  
  8731.  
  8732.         ---------------------------------------------------------------------
  8733.         #RESTORE                                                  Input/Output
  8734.         ---------------------------------------------------------------------
  8735.         Function  Restores the InstaCalc screen.
  8736.  
  8737.         Syntax    #RESTORE
  8738.  
  8739.         Remarks   This command  erases all  boxes and  restores the  InstaCalc
  8740.                   screen.   This  command should  be  used by  all application
  8741.                   programs before exiting.
  8742.  
  8743.         Example   #BOX 1,1,80,25 0 "Main Title"
  8744.                   #WAIT 10,10 "Press any key to continue"
  8745.                   #RESTORE
  8746.  
  8747.                   These lines draw a full screen box,  wait for you to press a
  8748.                   key, then restores the InstaCalc screen.
  8749.  
  8750.  
  8751.  
  8752.         ---------------------------------------------------------------------
  8753.         #RUN                                                          External
  8754.         ---------------------------------------------------------------------
  8755.         Function  Runs an external InstaCalc application as a subroutine.
  8756.  
  8757.         Syntax    #RUN application
  8758.  
  8759.         Remarks   This command allows  you to start running  another InstaCalc
  8760.                   application file  (.MAC) as  a subroutine.   The  other .MAC
  8761.                   file  will be  loaded into  memory and  executed.   When the
  8762.                   other .MAC file is finished running, it will be removed from
  8763.                   memory,  and control will  return to the  program containing
  8764.                   the #RUN command.
  8765.  
  8766.         Example   #RUN myprog
  8767.                   runs the InstaCalc  program "MYPROG.MAC".   When  MYPROG.MAC
  8768.                   has  finished running,  control  will  be  returned  to  the
  8769.                   current application at the line following the #RUN command.
  8770.  
  8771.  
  8772.  
  8773.  
  8774.  
  8775.                                          129
  8776.  
  8777.  
  8778.  
  8779.  
  8780.  
  8781.  
  8782.         ---------------------------------------------------------------------
  8783.         #SETCOLOR                                                 Input/Output
  8784.         ---------------------------------------------------------------------
  8785.         Function  Sets the colors which the various I/O commands will use.
  8786.  
  8787.         Syntax    #SETCOLOR item background foreground
  8788.  
  8789.         Remarks   This command allows you to set and change the various colors
  8790.                   which other  I/O commands  use when  writing to  the screen.
  8791.                   item is a value corresponding  to a different item which can
  8792.                   be displayed:
  8793.  
  8794.                   item DISPLAY
  8795.                   1    Frame around the menu
  8796.                   2    Title of the menu
  8797.                   3    Main body of the menu
  8798.                   4    Moving bar of the menu
  8799.                   5    Highlighted select character in the menu
  8800.                   6    Help line for the menu
  8801.                   7    Prompt for #EDIT, #INPUT, #KEY
  8802.                   8    Editing/output field
  8803.                   9    Frame around the window
  8804.                   10   The title of the window
  8805.                   11   The body of the window
  8806.  
  8807.                   background  and foreground are  values corresponding  to the
  8808.                   background and foreground colors to use:
  8809.  
  8810.                   0=Black             8=Dark Gray
  8811.                   1=Blue              9=Light Blue
  8812.                   2=Green             10=Light Green
  8813.                   3=Cyan              11=Light Cyan
  8814.                   4=Red               12=Light Red
  8815.                   5=Magenta           13=Light Magenta
  8816.                   6=Brown             14=Yellow
  8817.                   7=Light Gray        15=White
  8818.  
  8819.         Example   #SETCOLOR 4 1 15
  8820.                   will set the  color of the moving bar of a menu created with
  8821.                   #MENU to white on blue
  8822.  
  8823.  
  8824.  
  8825.         ---------------------------------------------------------------------
  8826.         #STEP                                                        Debugging
  8827.         ---------------------------------------------------------------------
  8828.         Function  Enables or disables single stepping.
  8829.  
  8830.         Syntax    #STEP 0/1
  8831.  
  8832.         Remarks   This single  command allows you  to single  step through  an
  8833.                   application,  set conditional  breakpoints, and  inspect and
  8834.                   edit cells while your application is running.
  8835.  
  8836.                   When the command #STEP 1 is encountered in a program, single
  8837.                   stepping is enabled.  When you are  in single step mode, the
  8838.                   bottom  line of  the screen  will display the  prompt "SS:",
  8839.  
  8840.  
  8841.                                          130
  8842.  
  8843.  
  8844.  
  8845.  
  8846.  
  8847.  
  8848.                   along with the next line  of the application to be executed.
  8849.                   You must press  a key (the  space bar is  good for this)  to
  8850.                   execute each line  of the program.  This  allows you to view
  8851.                   the operation of your program one line at a time rather than
  8852.                   have it whiz through at breakneck speed.
  8853.  
  8854.                   At  any point  while you  are  single stepping  through your
  8855.                   application  you may press <Ctrl><F2>.   This key will bring
  8856.                   up a  menu of  options which  allow  you to  view or  change
  8857.                   values of cells which your application might be using.
  8858.  
  8859.                   When the command #STEP 0 is encountered in a program, single
  8860.                   stepping  is  disabled  and execution  of  the  program will
  8861.                   continue normally.
  8862.  
  8863.                   Since  single stepping can be turned on  or off at any point
  8864.                   in your  program, #STEP  can be used  to set  breakpoints in
  8865.                   your application.  Simply put a #STEP 1 command at any point
  8866.                   of your program where you want to break from your program.
  8867.  
  8868.                   If  you want  to set  a conditional  break point  (where the
  8869.                   program will  stop only  when a  certain condition  exists),
  8870.                   then use a formula argument for #STEP instead of just 1.
  8871.  
  8872.         Example   #STEP 1
  8873.                   turns on single stepping at any point in the program.
  8874.  
  8875.                   #STEP [A5>3]
  8876.                   turns on single stepping only if the value  in A5 is greater
  8877.                   than 3.
  8878.  
  8879.  
  8880.         ---------------------------------------------------------------------
  8881.         #UPDATE                                                   Input/Output
  8882.         ---------------------------------------------------------------------
  8883.         Function  Enables or disables screen updating.
  8884.  
  8885.         Syntax    #UPDATE 0/1
  8886.  
  8887.         Remarks   This command toggles  InstaCalc screen updating on  and off.
  8888.                   This   command  is  useful  to  keep  screen  updating  from
  8889.                   overwriting  boxes and  windows  which your  application has
  8890.                   placed on screen.   #UPDATE 0 disables screen  updating, and
  8891.                   #UPDATE 1 enables  screen updating.  #UPDATE can  be used at
  8892.                   any point in the application to turn updating on or off.
  8893.  
  8894.         Example   #UPDATE 0
  8895.                   disables screen updating.
  8896.  
  8897.  
  8898.  
  8899.  
  8900.  
  8901.  
  8902.  
  8903.  
  8904.  
  8905.  
  8906.  
  8907.                                          131
  8908.  
  8909.  
  8910.  
  8911.  
  8912.  
  8913.  
  8914.         ----------------------------------------------------------------------
  8915.         #WAIT                                                     Input/Output
  8916.         ----------------------------------------------------------------------
  8917.         Function  Prompt and wait for a key press.
  8918.  
  8919.         Syntax    #WAIT x,y prompt
  8920.  
  8921.         Remarks   This command  displays prompt  at screen  position x,y,  and
  8922.                   then waits for  you to press a key.  This command is similar
  8923.                   to the #KEY command, except  that the keystroke is not saved
  8924.                   for processing.
  8925.  
  8926.         Example   #WAIT 10,10 "Press a key to continue"
  8927.                   displays Press a key to continue and waits for you to  press
  8928.                   a key.
  8929.  
  8930.  
  8931.  
  8932.         ---------------------------------------------------------------------
  8933.         #WHILE / #ENDWHILE                                             Control
  8934.         ---------------------------------------------------------------------
  8935.         Function  Repeat some commands while a condition exists.
  8936.  
  8937.         Syntax    #WHILE boolean formula
  8938.                     {some commands}
  8939.                   #ENDWHILE 
  8940.  
  8941.         Remarks   This command repeat a command or  set of commands as long as
  8942.                   boolean formula is  TRUE.  If boolean formula  is FALSE when
  8943.                   the  #WHILE  is  first reached,  the  commands  will  not be
  8944.                   executed at all.
  8945.  
  8946.                   The #ENDWHILE command will cause execution to branch back to
  8947.                   #WHILE so that boolean formula may be tested again.
  8948.  
  8949.         Example   #WHILE a1<10 
  8950.                     #INC a1 1.3 
  8951.                   #ENDWHILE
  8952.  
  8953.                   While the value in cell  a1 is less than 10, InstaCalc  will
  8954.                   increment the value of cell a1 by 1.3.
  8955.  
  8956.  
  8957.         ---------------------------------------------------------------------
  8958.         #WINDOW                                                   Input/Output
  8959.         ---------------------------------------------------------------------
  8960.         Function  Displays a window on the screen.
  8961.  
  8962.         Syntax    #WINDOW x1,y1 save title
  8963.  
  8964.         Remarks   This command is a special version of the #BOX command.  This
  8965.                   command,  along with  the #WINTEXT  command,  allows you  to
  8966.                   easily create text  windows without having to  calculate how
  8967.                   wide and tall the box  should be, or what screen coordinates
  8968.                   to use to display text in the box.  This command  displays a
  8969.                   box on the  screen.   The upper  left corner of  the box  is
  8970.                   located at  screen position x1,y1,  and the position  of the
  8971.  
  8972.  
  8973.                                          132
  8974.  
  8975.  
  8976.  
  8977.  
  8978.  
  8979.  
  8980.                   lower  right corner of  the box  is calculated  by InstaCalc
  8981.                   based  on the  number and length  of the  following #WINTEXT
  8982.                   commands.    save  determines  whether InstaCalc  saves  the
  8983.                   contents of the  screen under the box  before displaying it.
  8984.                   If save  equals 0, then  the screen contents are  not saved.
  8985.                   If save  equals 1, then  the screen contents are  saved, and
  8986.                   can be restored using the #CLEARBOX command.
  8987.  
  8988.         Example   #WINDOW 10,5 1 "My Window"
  8989.                     #WINTEXT "Here is some text"
  8990.                     #WINTEXT ["Name: "+a1]
  8991.                     #WINTEXT "Some more text"
  8992.  
  8993.                   These lines will create  a box with  the title My Window  at
  8994.                   position 10,5 on the screen.   The box will be  large enough
  8995.                   to hold 3 lines of text, and wide enough to hold  the widest
  8996.                   of the 3 lines.
  8997.  
  8998.  
  8999.  
  9000.         ---------------------------------------------------------------------
  9001.         #WINTEXT                                                  Input/Output
  9002.         ---------------------------------------------------------------------
  9003.         Function  Displays text in a window.
  9004.  
  9005.         Syntax    #WINTEXT line
  9006.  
  9007.         Remarks   This  command displays line in the currently defined window.
  9008.                   #WINDOW will automatically adjust the size of the window  to
  9009.                   hold the width of line.
  9010.  
  9011.  
  9012.  
  9013.  
  9014.  
  9015.  
  9016.  
  9017.  
  9018.  
  9019.  
  9020.  
  9021.  
  9022.  
  9023.  
  9024.  
  9025.  
  9026.  
  9027.  
  9028.  
  9029.  
  9030.  
  9031.  
  9032.  
  9033.  
  9034.  
  9035.  
  9036.  
  9037.  
  9038.  
  9039.                                          133
  9040.  
  9041.  
  9042.  
  9043.  
  9044.  
  9045.  
  9046.         INDEX
  9047.  
  9048.  
  9049.           @functions  63                        Delete records  57
  9050.           1-2-3  39, 41                         Deleting
  9051.           Absolute cell reference  12                columns  33
  9052.           Addition  10                               rows  33
  9053.           Anchor  13                            DIF  40, 41
  9054.           And  10                               Directory  36, 75
  9055.           Application  112                      Distribution  57
  9056.                breaking from  23, 120           Division  10
  9057.                debugging    22,   123,          Dollar format  16
  9058.                     130                         Editing  8
  9059.                editor  19, 59                   Editor  19
  9060.                running  61, 113                 EGA  23
  9061.           Arguments  63, 117                    End key  7
  9062.           Arrow keys  7                         Erasing
  9063.           ASCII  40, 41                              blocks  28
  9064.           Asterisk  17                               cells  25
  9065.           Auditing  58                               rows  33
  9066.           Bin  57                                    worksheet  31
  9067.           Block name  11, 13, 21, 30            Exiting  62
  9068.           Blocks, defining  12                  Exponentiation  10
  9069.           Branching commands  118               Export  20
  9070.           Break point  131                      Exporting
  9071.           CALC  34                                   1-2-3  41
  9072.           Cell  5, 12                                ASCII  41
  9073.           Cell pointer  6                            dBase  41
  9074.           CIRC  12                                   DIF  41
  9075.           Circular reference  12                Extract  39
  9076.           Colors  4, 130                        Extract records  57
  9077.           Column  width   5,  17,  25,          Feature List  3
  9078.                     28, 31                      File Manager  15, 35, 36
  9079.           Combining files  38                   Financial functions  64
  9080.           Comma  16                             Fixed format  16
  9081.           Command line  3                       Formatting  cells   16,  25,
  9082.           Commands  24                                    27, 31
  9083.           Comparison  10                        Formulas  10
  9084.           Configuration  3                      Frequency distribution  57
  9085.           Converting   from    earlier          Function keys  21
  9086.                     versions  4                 Functions  63
  9087.           Copying                               General format  16
  9088.                blocks  29                       Goalseek  55
  9089.                cell  26                         GoTo  21
  9090.           Criteria  39, 56                      Graphing  18, 47
  9091.           Currency format  16                   Header  45
  9092.           Customize  3                          Help  6, 21
  9093.           Cut  19                               Hidden
  9094.           Data entry  8, 23                          cells  17
  9095.           Data functions  65                         columns  25
  9096.           Database  53                          Highlighting blocks  12
  9097.           Date formats  17                      ICE  112
  9098.           Date functions  64                    Import  19
  9099.           DBase  39, 41                         Importing
  9100.           Decimal places  16                         1-2-3  39
  9101.           Defaults  3                                ASCII  40
  9102.           Defining blocks  12                        dBase  39
  9103.  
  9104.  
  9105.                                          134
  9106.  
  9107.  
  9108.  
  9109.  
  9110.  
  9111.  
  9112.                DIF  40                               text  17, 43-47
  9113.           Inserting                             Programming  117
  9114.                columns  32                      Protection  27, 30, 33
  9115.                rows  32                         Query  56
  9116.           InstaCalc            Command          Quitting  62
  9117.                     Environment  112            REC  18
  9118.           Installing InstaCalc  2               Recalculation  34
  9119.           Justify  8                            Recording macros  18, 23
  9120.           License  1                            References  12
  9121.           Linking                               Registration  2
  9122.                   42                            Relative cell reference  12
  9123.           Locking                               Replaying macros  18
  9124.                cells  33                        Retrieving files  35, 38
  9125.                files  35                        Saving files  35, 39
  9126.                titles  33                       Scaling  48
  9127.           Logical functions  65                 Scientific format  17
  9128.           Lookup tables  82, 109                Search & replace  21
  9129.           Looping commands  118                 Setup strings  27
  9130.           Lotus  39, 41                         Shell to DOS  61
  9131.           Macro  112                            Single step  130
  9132.                @functions  65                   Sort  51
  9133.                breaking from  23, 120           Statistical functions  64
  9134.                debugging     22,  123,          Status  23
  9135.                     130                         String functions  65
  9136.                editor  19, 59                   Subroutines  118
  9137.                recorder  18, 23                 Subtraction  10
  9138.                running  61, 113                 Switches  3
  9139.           Map view  58                          Text  8
  9140.           Margins  45, 47                       Text editor  19
  9141.           Mark  23                              Text functions  65
  9142.           Mask  23, 36                          Time formats  17
  9143.           Math functions  64                    Time functions  64
  9144.           Matrix  55                            Title locking  33
  9145.           Memory  23, 89                        Titles  48
  9146.           Memory resident  2                    ToMark  23
  9147.           Menu  24                              Trace  58
  9148.           Mouse  6, 7, 14                       Transpose  56
  9149.           Movement  6                           Trigonometry functions  64
  9150.           Moving                                TSR  2
  9151.                blocks  29                       VGA  23
  9152.                cell  27                         Window  132
  9153.           Multiplication  10                    WK1  39, 41
  9154.           Named blocks  29                      WKS  39, 41
  9155.           Not  10                               WordPerfect  3
  9156.           Numbers  8                            Worksheet  5
  9157.           Operating system  61                  Xtract  39
  9158.           Operators  10                         Zero suppression  34
  9159.           Or  10
  9160.           Order form  2
  9161.           Page number  45, 46
  9162.           Password  35, 128
  9163.           Paste  20
  9164.           Percent format  16
  9165.           Point mode  11
  9166.           Pop up  2
  9167.           Precedence  11
  9168.           Printing
  9169.  
  9170.  
  9171.                                          135
  9172.  
  9173.  
  9174.  
  9175.  
  9176.  
  9177.  
  9178.  
  9179.  
  9180.  
  9181.  
  9182.  
  9183.  
  9184.  
  9185.  
  9186.  
  9187.  
  9188.  
  9189.  
  9190.  
  9191.  
  9192.  
  9193.  
  9194.  
  9195.  
  9196.  
  9197.  
  9198.  
  9199.  
  9200.  
  9201.  
  9202.  
  9203.  
  9204.  
  9205.  
  9206.  
  9207.  
  9208.  
  9209.  
  9210.  
  9211.  
  9212.  
  9213.  
  9214.  
  9215.  
  9216.  
  9217.  
  9218.  
  9219.  
  9220.  
  9221.  
  9222.  
  9223.  
  9224.  
  9225.  
  9226.  
  9227.  
  9228.  
  9229.  
  9230.  
  9231.  
  9232.  
  9233.  
  9234.  
  9235.  
  9236.  
  9237.                                          136
  9238.  
  9239.  
  9240.  
  9241.